ISemaphore missing in action
Posted: Tue Jul 01, 2008 6:19 am
Hello,
I want to convert some existing code to using the madKernel interfaces. In one place I use WaitForMultipleObjects to wait on a semaphore and an event. I was thinking I would use
function WaitFor (const objects : array of IBasic;
waitAll : boolean = false;
milliseconds : cardinal = INFINITE;
handleMessages : boolean = true;
msgs : TWaitForMessages = [];
alertable : boolean = false ) : integer; overload;
but it seems there is no ISemaphore.
Is there a reason to not have an ISemaphore?
Should I still use WaitForMultipleObjects and feed in the handle from the IEvent?
thanks
I want to convert some existing code to using the madKernel interfaces. In one place I use WaitForMultipleObjects to wait on a semaphore and an event. I was thinking I would use
function WaitFor (const objects : array of IBasic;
waitAll : boolean = false;
milliseconds : cardinal = INFINITE;
handleMessages : boolean = true;
msgs : TWaitForMessages = [];
alertable : boolean = false ) : integer; overload;
but it seems there is no ISemaphore.
Is there a reason to not have an ISemaphore?
Should I still use WaitForMultipleObjects and feed in the handle from the IEvent?
thanks