ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
Re: [boost] Re: [Boost.Thread] mutex Win32 implementation changes
by Peter Dimov other posts by this author
Jul 20 2004 2:24PM messages near this date
Re: [boost] Re: [Boost.Thread] mutex Win32 implementation changes | [boost] Re: [Boost.Thread] mutex Win32 implementation changes
Alexander Terekhov wrote:
>  Peter Dimov wrote:
>  [...]
> > Here's TryEnterCriticalSection (-recursivity) for reference:
> > 
> > bool try_lock( critical_section * p )
> > {
> >     return atomic_compare_exchange( p->LockCount, -1, 0 ) == 0;
> > }
>  
>  The point of "swap based mutex" exercise was to avoid CAS because
>  i386 doesn't have it. With CAS (and absent timedlock operation),
>  it can be made safe and fast (better than MS "critical" stuff).

Why is i386 support important (for a Windows mutex implementation, I mean)?
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Michael Glassford
Alexander Terekhov
Alexander Terekhov
Alexander Terekhov
Peter Dimov
Alexander Terekhov
Alexander Terekhov
Alexander Terekhov
val salamakha
val salamakha
val salamakha
val salamakha
Peter Dimov
Alexander Terekhov
Peter Dimov
Alexander Terekhov
Peter Dimov
Peter Dimov
Alexander Terekhov
Peter Dimov
Alexander Terekhov
Alexander Terekhov
Alexander Terekhov
Alexander Terekhov
Alexander Terekhov
Michael Glassford
Alexander Terekhov
Michael Glassford

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved