michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- michael@0: * vim: set ts=8 sts=4 et sw=4 tw=99: michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef jslock_h michael@0: #define jslock_h michael@0: michael@0: #ifdef JS_THREADSAFE michael@0: michael@0: #ifdef JS_POSIX_NSPR michael@0: michael@0: #include "vm/PosixNSPR.h" michael@0: michael@0: #else /* JS_POSIX_NSPR */ michael@0: michael@0: # include "prcvar.h" michael@0: # include "prinit.h" michael@0: # include "prlock.h" michael@0: # include "prthread.h" michael@0: michael@0: #endif michael@0: michael@0: #else /* JS_THREADSAFE */ michael@0: michael@0: typedef struct PRThread PRThread; michael@0: typedef struct PRCondVar PRCondVar; michael@0: typedef struct PRLock PRLock; michael@0: michael@0: #endif /* JS_THREADSAFE */ michael@0: michael@0: #endif /* jslock_h */