1 // Copyright 2018 The Fuchsia Authors 2 // 3 // Use of this source code is governed by a MIT-style 4 // license that can be found in the LICENSE file or at 5 // https://opensource.org/licenses/MIT 6 7 // 8 // Declares the lockdep instrumented global thread lock. 9 // 10 // Until more general C to C++ conversion is completed this header must only 11 // be included in C++ source files. In particular this header must not be 12 // included in kernel/wait.h or kernel/thread.h until the conversion is done. 13 14 #pragma once 15 16 #include <kernel/lockdep.h> 17 #include <kernel/thread.h> 18 19 DECLARE_SINGLETON_LOCK_WRAPPER(ThreadLock, thread_lock, 20 (LockFlagsReportingDisabled | 21 LockFlagsTrackingDisabled)); 22