26 Sep
2009
26 Sep
'09
1:42 a.m.
On 25 Sep 2009, at 21:44, Mark Heily wrote:
Has anyone considered using the Apache Portable Runtime (APR)? They have many portable goodies including lock-free FIFO queues and thread pools. If libdispatch was rewritten to use APR instead of POSIX interfaces, it should work fine on Windows.
There may be benefit to using portions of APR on Windows, such as the thread pool. However, as far as I can tell, their FIFO queues are not lock-free[1]. But I think the core queue logic of libdispatch should work fine on Windows if converted to use InterlockedExchange, InterlockedAdd, et al. Kevin [1] http://svn.apache.org/repos/asf/apr/apr/trunk/util-misc/apr_queue.c