Project

General

Profile

Actions

action #11676

closed

Add support for barriers in lockAPI

Added by dzyuzin about 8 years ago. Updated over 7 years ago.

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

Also available in: Atom PDF