[ovs-dev] [PATCH] classifier: Update thread safety notes.

Ben Pfaff blp at nicira.com
Wed Sep 25 22:38:57 UTC 2013


Signed-off-by: Ben Pfaff <blp at nicira.com>
---
 lib/classifier.h |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lib/classifier.h b/lib/classifier.h
index a795b4a..8c77a93 100644
--- a/lib/classifier.h
+++ b/lib/classifier.h
@@ -28,10 +28,8 @@
  * Thread-safety
  * =============
  *
- * When locked properly, the classifier is thread safe as long as the following
- * conditions are satisfied.
- * - Only the main thread calls functions requiring a write lock.
- * - Only the main thread is allowed to iterate over rules. */
+ * The classifier may safely be accessed by many reader threads concurrently or
+ * by a single writer. */
 
 #include "flow.h"
 #include "hmap.h"
-- 
1.7.10.4




More information about the dev mailing list