/*
- * Copyright 2017 Facebook, Inc.
+ * Copyright 2014-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* this moment in time. Locks a mutex so that these EventBase set cannot
* be changed, and also the caller can rely on no instances being destructed.
*/
- template<typename FunctionType>
+ template <typename FunctionType>
void withEventBaseSet(const FunctionType& runnable) {
// grab the mutex for the caller
std::lock_guard<std::mutex> g(*&eventBaseSetMutex_);
std::shared_ptr<folly::EventBaseObserver> observer_;
};
-} // folly
+} // namespace folly