Fix concurrency issues while overwriting tracefiles in live
authorJulien Desfossez <jdesfossez@efficios.com>
Thu, 14 Nov 2013 17:51:30 +0000 (12:51 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 14 Nov 2013 17:55:29 +0000 (12:55 -0500)
Introduce a new lock to set the abort_flag in the viewer stream. This
lock is nested inside the tracefile rotation of the writer and is
taken before reading the tracefile in the viewer-side. That way, the
viewer-side has just to check this flag to know if it is safe to read.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>

No differences found
This page took 0.028198 seconds and 5 git commands to generate.