aboutsummaryrefslogtreecommitdiffstats
path: root/module/splat/splat-generic.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2012-11-05 09:04:50 -0800
committerBrian Behlendorf <[email protected]>2012-11-06 14:48:55 -0800
commitd2733258d09b02fac76af0df9921e369d33e9642 (patch)
tree13f867e4b937e51448565b0cada51bca3088637b /module/splat/splat-generic.c
parent87efc30b270454a372e18f236491b4f0e5bcc30d (diff)
Condition variable reference counts
Reference count every entry and exit from the condition variable functions: cv_wait(), cv_wait_timeout(), cv_signal(), cv_broadcast(). This allows us to safely block in cv_destroy() until all consumers have been scheduled and are no longer accessing the condition variable memory. In addition poison the magic value at the start of cv_destroy() to ensure there are never any new callers after cv_destroy() is called. The consumer is responsible for ensuring this never occurs. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/splat/splat-generic.c')
0 files changed, 0 insertions, 0 deletions