How to get the winapi id of a thread that has been created using the standard library?

后端 未结 2 1309
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-18 03:46

C++11’s standard library contains which allows threads to be created. However, the Windows api requires an ID for some functions (PostThreadMessa

2条回答
  •  北海茫月
    2021-01-18 04:22

    Use the member function native_handle(). It provides the native thread handle. Then you can call GetThreadId() on it.

提交回复
热议问题