How can I emulate the pthread_kill () function using C ++ threads? I asked a question about this before, but there was no answer. Will the thread :: native_handle () function work?
So the answer to this question is to rely on platform-specific functions and use std::thread::native_handlewithpthread_kill()
std::thread::native_handle
pthread_kill()
Source: https://habr.com/ru/post/1616572/More articles:Android Unit Test with upgradeability / RxJava / Roboletric and Mockito - androidкак перегрузить оператор доступа и мутатора [] в С++ - c++Refpount Delphi 7 error when copying a record to dynamically allocated memory - automatic-ref-countingProviding a callback for async script - javascriptHow to create a JSONObject? Android - javaVigenere Square Lookup (using string arrays) - c #How to check if a date matches the correct format, i.e. Yyyy-mmm-dd? - stringNodejs close variable not updated in module - javascriptКак получить информацию о заметках из сообщений с помощью python/tumblr api? - pythonBest way to find how many times a string (or substring) occurs in a large string C # - stringAll Articles