Re: [DUG] Critical Section with Timeout

2010-11-25 Thread Ross Levis
elphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Jolyon Smith Sent: Thursday, 25 November 2010 7:21 AM To: 'NZ Borland Developers Group - Delphi List' Subject: Re: [DUG] Critical Section with Timeout Why go to all this trouble? If you need a critical s

Re: [DUG] Critical Section with Timeout

2010-11-24 Thread Jolyon Smith
27;NZ Borland Developers Group - Delphi List' Subject: [DUG] Critical Section with Timeout I think I've come up with a solution to provide a critical section with a timeout, and want some feedback, particularly if you can see any problems with it. Firstly 2 procedures which are us

[DUG] Critical Section with Timeout

2010-11-24 Thread Ross Levis
I think I've come up with a solution to provide a critical section with a timeout, and want some feedback, particularly if you can see any problems with it. Firstly 2 procedures which are used to enter and leave a section. var CS: TRTLCriticalSection; LockThreadID: Cardinal; funct