/*
- * Copyright 2015 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
class RCUReadLock {
public:
- static RCUReadLock& instance() {
- // Both lock and unlock are static, so no need to worry about destruction
- // order
- static RCUReadLock instance;
- return instance;
- }
+ static RCUReadLock& instance();
static void lock() {
assert(RCURegisterThread() == false);