How to kill Thread using Objective-C?

I have a call to a third-party C ++ library that I put in my own thread (currently using NSThread). I would like to give the user the opportunity to stop the execution of this thread. (I am well aware of all the problems this may cause, but I still want to do this.)

According to the Apple Thread Programming Guide , there are opportunities in Cocoa to do this. Is this true for the iPhone, or should I rely on Posix streams to achieve my goal?

Greetings

MrMage

+2
source share
1 answer

- . .

, , :

Cocoa, POSIX Multiprocessing Services , . . , , , , , , .

, , , . , . , , ; .

+10

Source: https://habr.com/ru/post/1774196/


All Articles