Files
Arquivotheca.Solaris-2.5/uts/sparc/sys/sema_impl.h
seta75D 7c4988eac0 Init
2021-10-11 19:38:01 -03:00

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 */