From 9444524f85c43f1e881384131401210ccf6d593b Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 14 May 2012 11:10:51 -0400 Subject: [PATCH] Make it more clear that NOLOCK means "I promise, no multithreading" --- include/event2/event.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/event2/event.h b/include/event2/event.h index f1331f62..cf358c03 100644 --- a/include/event2/event.h +++ b/include/event2/event.h @@ -450,7 +450,11 @@ enum event_method_feature { */ enum event_base_config_flag { /** Do not allocate a lock for the event base, even if we have - locking set up. */ + locking set up. + + Setting this option will make it unsafe and nonfunctional to call + functions on the base concurrently from multiple threads. + */ EVENT_BASE_FLAG_NOLOCK = 0x01, /** Do not check the EVENT_* environment variables when configuring an event_base */