spinlock.h bugfix
authorkhizmax <libcds.dev@gmail.com>
Wed, 1 Oct 2014 04:28:00 +0000 (08:28 +0400)
committerkhizmax <libcds.dev@gmail.com>
Wed, 1 Oct 2014 04:28:00 +0000 (08:28 +0400)
cds/lock/spinlock.h

index 119cd8f834b031896fc96e565b600e0b9299209f..8bd65fb0b69d1ce6321d497de2960147cd46e493 100644 (file)
@@ -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;