how is a critical section going to help? when doing a read in one thread
and a write in another, you don't really want to force one to happen
before another ... you want either to happen as the resources become
available. With critical sections you can't find out what someone else
wants (i.e. if someone else wants to write whilst you are waiting for a
read) and so I don't think they can do the job.

I am sure you will correct me if I am wrong.

On unix I would use a form of critical section but also use signals to
break any poll/select call from within the critical section so that
thread can at least know that hey, i'm waiting to.

I can't say I know much about signals on windows though ;)

Regards,

dgym bailey
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to