[CRIU] [PATCH 22/26] zdtm: Add task_waiter_ helpers v3

Cyrill Gorcunov gorcunov at openvz.org
Tue Jun 19 04:30:35 EDT 2012


Sometime we need sync points in testee program
flow, for this reason task_waiter_ introduced.

The call semantics is the following

        Parent                  Child
        ------                  -----
        task_waiter_init
                                task_waiter_wait4
        task_waiter_complete
                                task_waiter_wait4
        task_waiter_complete

                ...

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 test/zdtm/lib/Makefile  |    2 +-
 test/zdtm/lib/lock.c    |   79 +++++++++++++++++++++++++++++++++++++++++++++++
 test/zdtm/lib/zdtmtst.h |   11 ++++++
 3 files changed, 91 insertions(+), 1 deletions(-)
 create mode 100644 test/zdtm/lib/lock.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0022-zdtm-Add-task_waiter_-helpers-v3.patch
Type: text/x-patch
Size: 2976 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20120619/8a4f2f38/0022-zdtm-Add-task_waiter_-helpers-v3.bin


More information about the CRIU mailing list