libs-base/Testing/Philosopher.h
Andrew McCallum c8de6a4002 New files from Scott Christley
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@914 72102866-910b-0410-8b05-ffd578937521
1996-02-13 15:40:05 +00:00

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