1 //===-- Support/ThreadSupport-NoSupport.h - Generic impl --------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines a generic ThreadSupport implementation used when there is
11 // no supported threading mechanism on the current system. Users should never
12 // #include this file directly!
14 //===----------------------------------------------------------------------===//
16 // Users should never #include this file directly! As such, no include guards
19 #ifndef SUPPORT_THREADSUPPORT_H
20 #error "Code should not #include Support/ThreadSupport-NoSupport.h directly!"
24 /// Mutex - This class allows user code to protect variables shared between
25 /// threads. It implements a "recursive" mutex, to simplify user code.
27 /// Since there is no platform support for _creating threads_, the non-thread
28 /// implementation of this class is a noop.