mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 17:51:01 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@914 72102866-910b-0410-8b05-ffd578937521
24 lines
308 B
Objective-C
24 lines
308 B
Objective-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
|