c++11 multi-threading
2023-04-07 11:30:52 12 举报
AI智能生成
c++11多线程
作者其他创作
大纲/内容
wait
wait_for
wait_until
notify_one
notify_all
condition_variableonly take unique_lock<mutex>
condition_variable_anyany lock
timeout
no_timeout
cv_status
notify_all_at_thread_exit
condition_variable
lock
try_lockLock mutex if not locked
unlock
native_handle
mutex
recursive_mutexacquire multiple levels of ownership
try_lock_for
try_lock_until
timed_mutex
recursive_timed_mutex
lock_guardkeeping it always lockeduntil the end of its context
try_lock
unique_lock
once_flag
adopt_lock_t
defer_lock_t
try_to_lock_t
call_once
function
kill_dependency
atomic_thread_fence
atomic_signal_fence
is_lock_free
sotre
load
exchange
compare_exchange_weaktrue if expected compares equal to the contained value
compare_exchange_strong
fetch_add
atomic
test_and_set
clear
ATOMIC_FLAG_INITclear state
atomic_flag
promise
packaged_task
future
shared_future
future_error
future_errc
future_status
launch
async
future_category
get_id
joinable
join调用该函数的线程必须等待该函数执行完毕
detach
swap
thread
yield避免一个线程频繁与其他线程争抢CPU时间片
sleep_untill等待到一个绝对时间点
sleep_for
this_threadaccess the current thread
c++11 multi-threading
0 条评论
回复 删除
下一页