[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: Threading on Solaris
From:       Alexandre Julliard <julliard () winehq ! com>
Date:       2002-07-25 23:38:40
[Download RAW message or body]

Gregg Mattinson <gm138242@scot.canada.sun.com> writes:

> Why does the SYSLEVEL structure have a CRITICAL_SECTION inside it?  Shouldn't a 
> mutex be used instead?

No, a mutex is a lot slower, and there is no way for a SYSLEVEL to
report that it was abandoned. If a thread gets killed while holding a
critical section or syslevel, all bets are off anyway, since you don't
know anything about the state of the resource that was protected by
the critical section. There is simply no way to recover from that.

-- 
Alexandre Julliard
julliard@winehq.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic