A
aminer
Hello,
SemaCondvar module version 1.0 is here...
SemaCondvar and SemaMonitor are new and portable synchronization objects...
Author: Amine Moulay Ramdane.
Description: SemaCondvar and SemaCondvar are a new synchronization
objects that combines a semaphore and a condition variable, it only uses
an event object and a critical section , so it's fast.
If you don't want the signal to be lost if the threads are not
waiting, just pass True to the state argument of to the constructor,
if you pass False to the state argument of the construtor so the signals
will be lost if the threads are not waiting.
Please take a look a the test.pas Object Pascal demo inside the zipfile,
compile and run it...
The implemented methods are:
function wait(mstime:longword=INFINITE):boolean;
procedure signal();overload;
procedure signal_all();
procedure signal(nbr:integer);overload;
function WaitersBlocked:integer;
Language: FPC Pascal v2.2.0+ / Delphi 7+: http://www.freepascal.org/
Operating Systems: Windows, Mac OSX , Linux , Unix...
Required FPC switches: -O3 -Sd -dFPC -dFreePascal
-Sd for delphi mode....
You can download SemaCondvar from:
http://pages.videotron.com/aminer/
Thank you,
Amine Moulay Ramdane.
SemaCondvar module version 1.0 is here...
SemaCondvar and SemaMonitor are new and portable synchronization objects...
Author: Amine Moulay Ramdane.
Description: SemaCondvar and SemaCondvar are a new synchronization
objects that combines a semaphore and a condition variable, it only uses
an event object and a critical section , so it's fast.
If you don't want the signal to be lost if the threads are not
waiting, just pass True to the state argument of to the constructor,
if you pass False to the state argument of the construtor so the signals
will be lost if the threads are not waiting.
Please take a look a the test.pas Object Pascal demo inside the zipfile,
compile and run it...
The implemented methods are:
function wait(mstime:longword=INFINITE):boolean;
procedure signal();overload;
procedure signal_all();
procedure signal(nbr:integer);overload;
function WaitersBlocked:integer;
Language: FPC Pascal v2.2.0+ / Delphi 7+: http://www.freepascal.org/
Operating Systems: Windows, Mac OSX , Linux , Unix...
Required FPC switches: -O3 -Sd -dFPC -dFreePascal
-Sd for delphi mode....
You can download SemaCondvar from:
http://pages.videotron.com/aminer/
Thank you,
Amine Moulay Ramdane.