libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
LibXR::Flag Namespace Reference

轻量标志位模块(Flag)/ Lightweight flag utilities for state signaling More...

Data Structures

class  Atomic
 原子标志位 / Atomic flag More...
 
class  Plain
 普通标志位(非原子)/ Non-atomic flag More...
 
class  ScopedRestore
 作用域标志管理器:构造时写入指定值,析构时恢复原值 / Scoped flag restorer: set on entry, restore on exit More...
 

Detailed Description

轻量标志位模块(Flag)/ Lightweight flag utilities for state signaling

提供原子/非原子两种标志位实现,以及作用域辅助器(RAII)。 Provides atomic and non-atomic flags with RAII helpers.

Note
该模块不是互斥锁/自旋锁,不提供临界区互斥语义 / Not a mutex/spinlock; no mutual exclusion semantics