X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2FSharedMutex.cpp;h=d8b49887af73f41f2f0f63cac60956a176b910ab;hb=ff66c8dcf1b022a2953cd9c10661b24d7bf04d1f;hp=3a3ac17d4eabff05b889fd0259a2d1e211ec8e3a;hpb=186bd8ade9668acd931201b4913d3c2af1f9535f;p=folly.git diff --git a/folly/SharedMutex.cpp b/folly/SharedMutex.cpp index 3a3ac17d..d8b49887 100644 --- a/folly/SharedMutex.cpp +++ b/folly/SharedMutex.cpp @@ -1,5 +1,5 @@ /* - * 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. @@ -14,9 +14,10 @@ * limitations under the License. */ -#include "SharedMutex.h" +#include -COMMON_CONCURRENCY_SHARED_MUTEX_DECLARE_STATIC_STORAGE( - folly::SharedMutexReadPriority); -COMMON_CONCURRENCY_SHARED_MUTEX_DECLARE_STATIC_STORAGE( - folly::SharedMutexWritePriority); +namespace folly { +// Explicitly instantiate SharedMutex here: +template class SharedMutexImpl; +template class SharedMutexImpl; +}