46 lines
657 B
C
Executable File
46 lines
657 B
C
Executable File
/*
|
|
* Copyright (c) 1993 Sun Microsystems, Inc.
|
|
*/
|
|
|
|
/*
|
|
* semaphore.h:
|
|
*
|
|
* definitions for thread synchronization primitives:
|
|
* mutexs, semaphores, condition variables, and readers/writer
|
|
* locks.
|
|
*/
|
|
|
|
#ifndef _SYS_SEMA_IMPL_H
|
|
#define _SYS_SEMA_IMPL_H
|
|
|
|
#pragma ident "@(#)sema_impl.h 1.6 95/02/12 SMI"
|
|
|
|
#ifndef _ASM
|
|
#include <sys/types.h>
|
|
#include <sys/machlock.h>
|
|
#include <sys/dki_lkinfo.h>
|
|
#endif /* _ASM */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef _ASM
|
|
|
|
/*
|
|
* Semaphores.
|
|
*/
|
|
|
|
typedef struct _sema_impl {
|
|
struct _kthread *s_slpq;
|
|
int s_count;
|
|
} sema_impl_t;
|
|
|
|
#endif /* _ASM */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _SYS_SEMA_IMPL_H */
|