NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
ne_stl_spinlock.h 文件参考
#include "ne_stl_atomic.h"
#include "ne_stl_build.h"
#include "ne_stl_value_def.h"
#include <pthread.h>

浏览源代码.

class  nstd::_spinlock
 
class  nstd::_lock_guard
 

命名空间

namespace  nstd
 

宏定义

#define NE_STL_SPINLOCK_USE_THRD_YIELD   1
 
#define THRD_YIELD()   pthread_yield_np()
 

类型定义

using nstd::spinlock = _spinlock
 
using nstd::lock_guard = _lock_guard
 

宏定义说明

◆ NE_STL_SPINLOCK_USE_THRD_YIELD

#define NE_STL_SPINLOCK_USE_THRD_YIELD   1

◆ THRD_YIELD

#define THRD_YIELD ( )    pthread_yield_np()