sem.h (361B)
1 /* Copyright 1998-1999, Brian J. Swetland. All rights reserved. 2 ** Distributed under the terms of the OpenBLT License 3 */ 4 5 #ifndef _SEM_H 6 #define _SEM_H 7 8 #include "resource.h" 9 10 struct __sem_t 11 { 12 resource_t rsrc; 13 14 int count; 15 }; 16 17 int sem_create(int count, const char *name); 18 int sem_destroy(int sem); 19 int sem_acquire(int id); 20 int sem_release(int id); 21 22 #endif