mirror of
https://sourceware.org/git/glibc.git
synced 2026-01-06 11:51:29 +03:00
nptl: Move cancel type out of cancelhandling
Now that the thread cancellation type is not accessed concurrently anymore, it is possible to move it out the cancelhandling. By removing the cancel state out of the internal thread cancel handling state there is no need to check if cancelled bit was set in CAS operation. It allows simplifing the cancellation wrappers and the CANCEL_CANCELED_AND_ASYNCHRONOUS is removed. Checked on x86_64-linux-gnu and aarch64-linux-gnu.
This commit is contained in:
@@ -161,6 +161,7 @@ get_cached_stack (size_t *sizep, void **memp)
|
||||
/* Cancellation handling is back to the default. */
|
||||
result->cancelhandling = 0;
|
||||
result->cancelstate = PTHREAD_CANCEL_ENABLE;
|
||||
result->canceltype = PTHREAD_CANCEL_DEFERRED;
|
||||
result->cleanup = NULL;
|
||||
result->setup_failed = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user