From: khizmax Date: Wed, 1 Oct 2014 04:28:00 +0000 (+0400) Subject: spinlock.h bugfix X-Git-Tag: v2.0.0~247 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=eda369d5593612cafa68dc359874f8b61b1a6bb6;p=libcds.git spinlock.h bugfix --- diff --git a/cds/lock/spinlock.h b/cds/lock/spinlock.h index 119cd8f8..8bd65fb0 100644 --- a/cds/lock/spinlock.h +++ b/cds/lock/spinlock.h @@ -129,7 +129,7 @@ namespace cds { Returns \p true if locking is succeeded otherwise (if the spin is already locked) returns \p false */ - bool try_lock( unsigned int nTryCount ) CDS_NOEXCEPT( noexept( backoff_strategy()() ) ) + bool try_lock( unsigned int nTryCount ) CDS_NOEXCEPT( noexcept( backoff_strategy()() ) ) { backoff_strategy backoff; while ( nTryCount-- ) { @@ -141,7 +141,7 @@ namespace cds { } /// Lock the spin-lock. Waits infinitely while spin-lock is locked. Debug version: deadlock may be detected - void lock() CDS_NOEXCEPT(noexept( backoff_strategy()() )) + void lock() CDS_NOEXCEPT(noexcept( backoff_strategy()() )) { backoff_strategy backoff;