nate.sizemore
lvl.1
United States
Offline
|
Hello,
I'm working on integrating the Payload-SDK into Rust. The OSAL has thread create and thread destroy. In the create, under Linux, it is setup as pthread with ASYNC CANCEL type, and in destory pthread_cancel is called:
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL);
pthread_cancel(*(pthread_t *)task);
Rust does not have cancellable threads. Does the Payload SDK internally expect to be able to cancel a running thread at anytime, or is it OK for the Rust OSAL thread create and thread destory to not have cancel?
Thanks,
- Nate
|
|