Skip to content

Commit 3dd23bc

Browse files
authored
Add include guard in rwlock.h (#3005)
1 parent 663625a commit 3dd23bc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/bthread/rwlock.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18+
#ifndef BTHREAD_RWLOCK_H
19+
#define BTHREAD_RWLOCK_H
20+
1821
#include "bthread/types.h"
1922
#include "bthread/bthread.h"
2023
#include "butil/scoped_lock.h"
@@ -212,3 +215,5 @@ class lock_guard<bthread::RWLock> {
212215
};
213216

214217
} // namespace std
218+
219+
#endif //BTHREAD_RWLOCK_H

0 commit comments

Comments
 (0)