From eda369d5593612cafa68dc359874f8b61b1a6bb6 Mon Sep 17 00:00:00 2001 From: khizmax Date: Wed, 1 Oct 2014 08:28:00 +0400 Subject: [PATCH] spinlock.h bugfix --- cds/lock/spinlock.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.34.1