From 2c3711992f55f2d0a9f0e37b89e1647d26aa5f6d Mon Sep 17 00:00:00 2001 From: Andrii Grynenko Date: Mon, 24 Apr 2017 20:04:03 -0700 Subject: [PATCH 1/1] Remove thread-safety comment from EventBaseLocal Reviewed By: vitaut Differential Revision: D4940976 fbshipit-source-id: 0c4ebf8f358e6f54a7b5e81f2e73649b030006c9 --- folly/io/async/EventBaseLocal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/folly/io/async/EventBaseLocal.h b/folly/io/async/EventBaseLocal.h index f7276375..5b627f0f 100644 --- a/folly/io/async/EventBaseLocal.h +++ b/folly/io/async/EventBaseLocal.h @@ -63,7 +63,8 @@ class EventBaseLocalBase : public EventBaseLocalBaseBase, boost::noncopyable { * Foo& foo = myFoo.getOrCreateFn(evb, [] () { return new Foo(3, 4); }) * * The objects will be deleted when the EventBaseLocal or the EventBase is - * destructed (whichever comes first). All methods are thread-safe. + * destructed (whichever comes first). All methods must be called from the + * EventBase thread. * * The user is responsible for throwing away invalid references/ptrs returned * by the get() method after set/erase is called. If shared ownership is -- 2.34.1