forked from xapi-project/xen-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Locking_helpers: optimise waiting->acquired->release by looking up th…
…e thread local var just once There is already a value returned from waiting_for that needs to e sent to acquired and the value returned from acquired sent to released. Initially this was introduced to pass along Span.t, but it is more efficient to stor e the Span.t inside the thread local record, and instead return the thread-local record. That way we don't need to take the global mutex and look up the current thread in the global hash table on acquire and release, it is sufficient to do that in waiting_for. Signed-off-by: Edwin Török <[email protected]>
- Loading branch information
1 parent
a6638da
commit fa15f27
Showing
3 changed files
with
30 additions
and
31 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
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