X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=kern%2Fsem.h;h=1e3ef205642ca0e0c085724d7ada2d335fa1f8f3;hb=HEAD;hp=84a4811d056d52a6ca2a0d7aa79f53db4a5954b1;hpb=81db20a28b54141e629049b5b55b8dd1c9a804f3;p=bertos.git diff --git a/kern/sem.h b/kern/sem.h deleted file mode 100755 index 84a4811d..00000000 --- a/kern/sem.h +++ /dev/null @@ -1,60 +0,0 @@ -/*! - * \file - * - * - * \brief Mutually exclusive semaphores. - * Shared locking not supported in this implementation. - * - * \version $Id$ - * - * \author Bernardo Innocenti - */ - -/*#* - *#* $Log$ - *#* Revision 1.4 2005/01/22 04:21:20 bernie - *#* Add handy typedef for struct Semaphore. - *#* - *#* Revision 1.3 2004/08/25 14:12:09 rasky - *#* Aggiornato il comment block dei log RCS - *#* - *#* Revision 1.2 2004/06/03 11:27:09 bernie - *#* Add dual-license information. - *#* - *#* Revision 1.1 2004/05/23 17:27:00 bernie - *#* Import kern/ subdirectory. - *#* - *#*/ - -#ifndef KERN_SEM_H -#define KERN_SEM_H - -#include "compiler.h" -#include - -/* Fwd decl */ -struct Process; - - -typedef struct Semaphore -{ - struct Process *owner; - List wait_queue; - int nest_count; -} Semaphore; - -/*! - * \name Process synchronization services - * \{ - */ -void sem_init(struct Semaphore *s); -bool sem_attempt(struct Semaphore *s); -void sem_obtain(struct Semaphore *s); -void sem_release(struct Semaphore *s); -/* \} */ - -#endif /* KERN_SEM_H */