| Index: third_party/protobuf/src/google/protobuf/stubs/once.h
|
| diff --git a/third_party/protobuf/src/google/protobuf/stubs/once.h b/third_party/protobuf/src/google/protobuf/stubs/once.h
|
| index 7fbc117fe43c8d9519ec3870678b3b6c8d9b0453..9f1c5fc6469f5fa654a2d6b1c2eea9230ce5c1b8 100644
|
| --- a/third_party/protobuf/src/google/protobuf/stubs/once.h
|
| +++ b/third_party/protobuf/src/google/protobuf/stubs/once.h
|
| @@ -121,12 +121,8 @@ typedef internal::AtomicWord ProtobufOnceType;
|
| LIBPROTOBUF_EXPORT
|
| void GoogleOnceInitImpl(ProtobufOnceType* once, Closure* closure);
|
|
|
| -inline void GoogleOnceInit(ProtobufOnceType* once, void (*init_func)()) {
|
| - if (internal::Acquire_Load(once) != ONCE_STATE_DONE) {
|
| - internal::FunctionClosure0 func(init_func, false);
|
| - GoogleOnceInitImpl(once, &func);
|
| - }
|
| -}
|
| +LIBPROTOBUF_EXPORT
|
| +void GoogleOnceInit(ProtobufOnceType* once, void (*init_func)());
|
|
|
| template <typename Arg>
|
| inline void GoogleOnceInit(ProtobufOnceType* once, void (*init_func)(Arg*),
|
|
|