qb  2.0.0.0
C++17 Actor Framework
qb Issue Watch Star Fork Follow @isndev
Loading...
Searching...
No Matches

Spinlock synchronization primitives. More...

#include <atomic>
#include <qb/system/timestamp.h>
Include dependency graph for spinlock.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  qb::lockfree::SpinLock
 A spinlock implementation for lightweight thread synchronization. More...

Detailed Description

Spinlock synchronization primitives.

This file provides various spinlock implementations for low-latency synchronization. Spinlocks are a type of mutex that uses busy-waiting instead of context switching, making them efficient for short critical sections where the expected contention is low.

Author
qb - C++ Actor Framework

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.