picofuse-objc

NXWaitGroup.h
Go to the documentation of this file.
1 
5 #pragma once
6 #include <picofuse/sys.h>
7 
18 @interface NXWaitGroup : NXObject {
19 @private
20  sys_waitgroup_t *_waitgroup;
21 }
22 
28 - (id)init;
29 
34 - (void)add:(int)count;
35 
39 - (void)done;
40 
44 - (void)wait;
45 
46 @end
void done()
Takes one away from the count.
id init()
Initializes a wait group, with a count of zero.
void wait()
Waits until the count is zero, which is straight away if it already is.
The base class for objects in the Foundation framework.
Definition: NXObject.h:28
A count of work to be done, which threads can wait for to reach zero.
Definition: NXWaitGroup.h:18
struct objc_object * id
A pointer to an instance of a class.
Definition: runtime.h:18