1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 * Header for JavaScript Debugging support - Locking and threading functions
14 * If you want to support threading and locking, define JSD_THREADSAFE and
15 * implement the functions below.
19 * NOTE: These locks must be reentrant in the sense that they support
20 * nested calls to lock and unlock.
23 typedef struct JSDStaticLock JSDStaticLock
;
29 jsd_Lock(JSDStaticLock
* lock
);
32 jsd_Unlock(JSDStaticLock
* lock
);
36 jsd_IsLocked(JSDStaticLock
* lock
);
42 #endif /* jsd_lock_h___ */