#170 closed enhancement (fixed)
unpark new thread
Reported by: | Thierry Delisle | Owned by: | |
---|---|---|---|
Priority: | minor | Component: | libcfa |
Version: | 1.0 | Keywords: | Park/Unpark |
Cc: |
Description
The following code would be convenient to have a bunch of threads "start at once"
thread MyThread { /*...*/ }; void main( MyThread & ) { park(); /*...*/ } void foo() { MyThread mythreads[4]; for(i; 4) { unpark(mythreads[i]); } /*...*/ }
This could be a little tricky because normally, park and unparks should be perfectly interleaved, but in this case "start, unpark, park" is similar enough to "unpark, unpark, park" that it might cause problems.
Change History (3)
comment:1 by , 5 years ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In ff79d5e: