ftp.nice.ch/pub/next/developer/languages/c/gcc.2.7.2.2.I.b.tar.gz#/lib/gcc-lib/i386-next-nextstep3/2.7.2.2.f.2/include/mach/m68k/simple_lock.h

This is simple_lock.h in view mode; [Download] [Up]

/* Copyright (c) 1991 NeXT Computer, Inc.  All rights reserved.
 * 
 *	File:	mach/m68k/simple_lock.h
 *
 *	This file contains machine dependent code for exclusion
 *	lock handling on NeXT 68K-based products.
 *
 * HISTORY
 * 20-May-91  Mike DeMoney (mike@next.com)
 *	Created.
 */

#ifndef	_MACH_M68K_SIMPLE_LOCK_
#define _MACH_M68K_SIMPLE_LOCK_

struct slock {
	int		lock_data;	/* in general 1 bit is sufficient */
};

typedef struct slock	simple_lock_data_t;
typedef struct slock	*simple_lock_t;

extern simple_lock_t	simple_lock_alloc();
extern void		simple_lock_free();

extern void		(simple_lock_init)();
extern void		(simple_lock)();
extern void		(simple_unlock)();
extern boolean_t	(simple_lock_try)();

#endif

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.