Parent Directory | Revision Log
+ initial commit
1 | joko | 1.1 | |
2 | # ifndef __bakery_h | ||
3 | # define __bakery_h | ||
4 | |||
5 | /* Datenstruktur für einen kritischen Abschnitt */ | ||
6 | typedef struct _crit_sec { | ||
7 | /* TODO */ | ||
8 | } *MY_LPCRITICAL_SECTION; | ||
9 | |||
10 | void My_InitializeCriticalSection( MY_LPCRITICAL_SECTION * sec ); | ||
11 | void My_DeleteCriticalSection( MY_LPCRITICAL_SECTION sec ); | ||
12 | |||
13 | /* ThId = thread id */ | ||
14 | void My_EnterCriticalSection( int ThId, MY_LPCRITICAL_SECTION sec ); | ||
15 | void My_LeaveCriticalSection( int ThId, MY_LPCRITICAL_SECTION sec ); | ||
16 | |||
17 | # endif | ||
18 |
MailToCvsAdmin">MailToCvsAdmin | ViewVC Help |
Powered by ViewVC 1.1.26 |