From: Ulrich Eckhardt on
io_x wrote:
> "Dee Earley" <dee.earley(a)icode.co.uk> ha scritto nel messaggio
> news:4bcd7dff$0$346$7b0f0fd3(a)reader.news.newnet.co.uk...
>> On 20/04/2010 10:50, io_x wrote:
>>> How you from win32 can lock one resource used from many treadhs?
>>> example:
>>
>> CriticalSections maybe?
>
> maybe not, the last time i use it in my home made malloc() function
> with only one thread
> the program increase the memory in function of the time until sys slow
> down or seg fault if i remember well

win32's CRITICAL_SECTIONs do what you asked for, provided they are used
correctly. Show some faulty code and people could be able to tell you how
to fix it.

Uli

--
Sator Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932