X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=kern%2Fsem.h;h=2ff3a9ab48d1772445459671c835120c975792c5;hb=d10f125474900e83860a3031ca3a31141fdf27a9;hp=91b56157c04d952dc9e2e5e8d4ee4cd36c300f23;hpb=1cc167e20f21d2e81527ca47ccd4a21a6198f86f;p=bertos.git diff --git a/kern/sem.h b/kern/sem.h index 91b56157..2ff3a9ab 100755 --- a/kern/sem.h +++ b/kern/sem.h @@ -1,9 +1,9 @@ -/** +/*! * \file * * * \brief Mutually exclusive semaphores. @@ -14,29 +14,44 @@ * \author Bernardo Innocenti */ -/* - * $Log$ - * Revision 1.1 2004/05/23 17:27:00 bernie - * Import kern/ subdirectory. - * - */ +/*#* + *#* $Log$ + *#* Revision 1.6 2005/11/04 16:20:02 bernie + *#* Fix reference to README.devlib in header. + *#* + *#* Revision 1.5 2005/04/11 19:10:28 bernie + *#* Include top-level headers from cfg/ subdir. + *#* + *#* 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 #include /* Fwd decl */ struct Process; -struct Semaphore +typedef struct Semaphore { struct Process *owner; List wait_queue; int nest_count; -}; +} Semaphore; /*! * \name Process synchronization services