/[cvs]/joko/Uni/BSArch/02/bakery.h
ViewVC logotype

Annotation of /joko/Uni/BSArch/02/bakery.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations)
Fri May 26 10:50:19 2006 UTC (18 years, 6 months ago) by joko
Branch: MAIN
Changes since 1.1: +1 -1 lines
File MIME type: text/plain
+ Makefile
+ compiles and works w/o thread synchronization (erroneous)

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 joko 1.2 int abc;
8 joko 1.1 } *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 RSS 2.0 feed