Curious
Curious

Reputation: 21560

Emulate pthread_kill with C++ threads

How can I go about emulating the pthread_kill() function with C++ threads? I asked a question about this earlier but there was no response to it. Will the thread::native_handle() function help here?

Upvotes: 7

Views: 2451

Answers (1)

Curious
Curious

Reputation: 21560

So the answer to this question is to rely on platform dependent features and use std::thread::native_handle with pthread_kill()

Upvotes: 8

Related Questions