Message75872
Here is a revised version.
Since there is no portable way to block signals, and no way at all on
windows (apparently) the simplest way is to simply use NOWAIT_LOCK when
adding a new pending call. While this does not guarantee that we are
always able to append a call (we may be unlucky in all our N tries and
there is also no portable way to yield the thread timeslice between
tries) such are also the semantics of the method. Sometimes the buffer
may be full, or we fail to get the lock in time, and a -1 is returned.
It is up to the caller to respond appropriately, perhaps by trying again
later. |
|
Date |
User |
Action |
Args |
2008-11-14 16:59:51 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson, amaury.forgeotdarc, christian.heimes |
2008-11-14 16:59:50 | kristjan.jonsson | set | messageid: <1226681990.85.0.399265124686.issue4293@psf.upfronthosting.co.za> |
2008-11-14 16:59:49 | kristjan.jonsson | link | issue4293 messages |
2008-11-14 16:59:49 | kristjan.jonsson | create | |
|