-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libtcb: Use thread-local storage for tcb_drop_priv and tcb_gain_priv.
tcb_drop_priv and tcb_gain_priv now use per-thread storage areas for their operations, allocated upon the first call in each thread that uses them. This makes it safe to call these functions from multiple threads simultaneously. The introduction of this feature is a safety net against sloppy coding. Programs are still strongly encouraged to use the reentrant functions tcb_drop_priv_r and tcb_gain_priv_r instead. Signed-off-by: Björn Esser <[email protected]>
- Loading branch information
Showing
2 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters