Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __DISPATCH_SEMAPHORE__
00022 #define __DISPATCH_SEMAPHORE__
00023
00029 #ifndef __DISPATCH_INDIRECT__
00030 #error "Please #include <dispatch/dispatch.h> instead of this file directly."
00031 #include <dispatch/base.h>
00032 #endif
00033
00039 DISPATCH_DECL(dispatch_semaphore);
00040
00041 __DISPATCH_BEGIN_DECLS
00042
00059 DISPATCH_EXPORT
00060 dispatch_semaphore_t
00061 dispatch_semaphore_create(long value);
00062
00080 DISPATCH_EXPORT
00081 long
00082 dispatch_semaphore_wait(dispatch_semaphore_t dsema, dispatch_time_t timeout);
00083
00098 DISPATCH_EXPORT
00099 long
00100 dispatch_semaphore_signal(dispatch_semaphore_t dsema);
00101
00102 __DISPATCH_END_DECLS
00103
00106 #endif