Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix race condition.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Tue, 20 May 2014 13:02:22 +0000 (15:02 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Tue, 20 May 2014 14:16:50 +0000 (16:16 +0200)
commit6ae9aaa5eb4561674a1552c1a628ad0297682460
treec210a4f0cb604db015fa74aa2de5859e096bdb07
parent8115b6b396c220005ab48467d483427a93d90f93
Fix race condition.

Avoid to launch and cancel the task at the same time.  It seems to work with
HAVE_TRACING, but fails without.  In fact, the task cancelation happens before
the task starts to execute.  As a workaround, add a small delay before firing
up the cancel.
teshsuite/msg/task_destroy_cancel/task_destroy_cancel.c
teshsuite/msg/task_destroy_cancel/task_destroy_cancel.tesh