Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新C++11多线程内容 #255

Merged
merged 3 commits into from
Dec 31, 2022
Merged

更新C++11多线程内容 #255

merged 3 commits into from
Dec 31, 2022

Conversation

LiuYuan-SHU
Copy link
Contributor

  1. 更新排版:更新了以下内容的排版,以适应网页的风格:

    • lambda表达式
    • 多线程
  2. 更新互斥锁部分:

    • mutex
      • 上锁——lock
      • 解锁——unlock
      • 尝试上锁——try_lock
    • lock_guard<Mutex>
      • 额外参数std::adopt_lock
    • unique_lock<Mutex>
      • 额外参数
        • std::adopt_lock
        • std::try_to_lock
        • std::defer_lock
      • 成员函数
        • lock
        • unlock
        • release
        • owns_lock
    • call_once
  3. 更新条件变量部分:

    • condition_variable
      • wait
      • notify_one
      • notify_all
  4. 更新同步、异步及线程运行结果获取部分:

    • async
      • std::launch::deferred
      • std::launch::async
      • std::deferred | std::launch::async
    • future
      • wait
      • get
      • wait_for
      • wait_until
    • future_status
      • ready
      • timeout
      • deferred
    • shared_future

更新了以下内容的排版,以适应网页的风格:

+ lambda表达式
+ 多线程
更新以下部分:

+ `mutex`
    + 上锁——`lock`
    + 解锁——`unlock`
    + 尝试上锁——`try_lock`
+ `lock_guard<Mutex>`
    + 额外参数`std::adopt_lock`
+ `unique_lock<Mutex>`
    + 额外参数
        + `std::adopt_lock`
        + `std::try_to_lock`
        + `std::defer_lock`
    + 成员函数
        + `lock`
        + `unlock`
        + `release`
        + `owns_lock`
更新内容:
 
+ `call_once`
+ `condition_variable` 
    + `wait`
    + `notify_one`
    + `notify_all`
+ `async`
    + `std::launch::deferred`
    + `std::launch::async`
    + `std::deferred | std::launch::async`
+ `future`
    + `wait`
    + `get`
    + `wait_for`
    + `wait_until`
+ `future_status`
    + `ready`
    + `timeout`
    + `deferred`
+ `shared_future`
@jaywcjlove jaywcjlove merged commit a2cfd4e into jaywcjlove:main Dec 31, 2022
github-actions bot pushed a commit that referenced this pull request Dec 31, 2022
* 更新排版

更新了以下内容的排版,以适应网页的风格:

+ lambda表达式
+ 多线程

* 更新C++多线程:锁

更新以下部分:

+ `mutex`
    + 上锁——`lock`
    + 解锁——`unlock`
    + 尝试上锁——`try_lock`
+ `lock_guard<Mutex>`
    + 额外参数`std::adopt_lock`
+ `unique_lock<Mutex>`
    + 额外参数
        + `std::adopt_lock`
        + `std::try_to_lock`
        + `std::defer_lock`
    + 成员函数
        + `lock`
        + `unlock`
        + `release`
        + `owns_lock`

* 更新C++11多线程内容

更新内容:

+ `call_once`
+ `condition_variable`
    + `wait`
    + `notify_one`
    + `notify_all`
+ `async`
    + `std::launch::deferred`
    + `std::launch::async`
    + `std::deferred | std::launch::async`
+ `future`
    + `wait`
    + `get`
    + `wait_for`
    + `wait_until`
+ `future_status`
    + `ready`
    + `timeout`
    + `deferred`
+ `shared_future` a2cfd4e
jaywcjlove added a commit that referenced this pull request Dec 31, 2022
github-actions bot pushed a commit that referenced this pull request Dec 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants