Actions
action #11676
closedAdd support for barriers in lockAPI
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-04-20
Due date:
% Done:
0%
Estimated time:
Difficulty:
Description
For multi-machine testing barrier functions are very important, they implemented as mutex_create/mutex_lock wrapper in lib/hacluster.pm for two nodes cluster, but this cannot be done for three and more machines.
We need to have equivalent of pthread_barrier_wait() for thread synchronisation. Something like
barrier_create(name, number_of_threads)
barrier_wait(name) --- the calling job should block execution until the function is called $number_of_threads times (in different jobs)
barrier_destroy(name)
Actions