mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 10:11:03 +00:00
25 lines
308 B
C
25 lines
308 B
C
|
//
|
||
|
// Philosopher.h
|
||
|
//
|
||
|
// A class of hungry philosophers
|
||
|
//
|
||
|
|
||
|
#include <Foundation/NSLock.h>
|
||
|
#include <Foundation/NSThread.h>
|
||
|
|
||
|
// Conditions
|
||
|
#define NO_FOOD 1
|
||
|
#define FOOD_SERVED 2
|
||
|
|
||
|
@interface Philosopher : NSObject
|
||
|
|
||
|
{
|
||
|
int chair;
|
||
|
}
|
||
|
|
||
|
// Instance methods
|
||
|
- (void)sitAtChair:(int)position;
|
||
|
- (int)chair;
|
||
|
|
||
|
@end
|