forked from openpmix/openpmix
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added alternative locking by `pthread` with use shared memory region for the lock. The code path of old locking by `flock` has been saved for evaluate performance against locking by `pthread` and other purposes. To change the locking type needs to enable the code paths by macro: #define PTHREAD_LOCK_ENABLE 1 #define FCNTL_LOCK_ENABLE 1 In priority uses the locking by 'pthread' Thanks to @artpol84 for this proof of concept. - The results of locking by `pthread` here: openpmix#260 (comment) - Code base of concept: https://github.com/artpol84/poc/tree/master/benchmarks/shmem_locking Signed-off-by: Boris Karasev <[email protected]>
- Loading branch information
Showing
2 changed files
with
177 additions
and
10 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