mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 677079 - Part q: Expose gcLock in jsfriendapi.h; r=gal
This commit is contained in:
parent
59f812e2ba
commit
a68763cbfd
@ -533,6 +533,12 @@ GetContextOutstandingRequests(const JSContext *cx)
|
||||
{
|
||||
return cx->outstandingRequests;
|
||||
}
|
||||
|
||||
JS_FRIEND_API(PRLock *)
|
||||
GetRuntimeGCLock(const JSRuntime *rt)
|
||||
{
|
||||
return rt->gcLock;
|
||||
}
|
||||
#endif
|
||||
|
||||
JS_FRIEND_API(JSCompartment *)
|
||||
|
@ -153,6 +153,8 @@ JS_END_EXTERN_C
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
struct PRLock;
|
||||
|
||||
namespace js {
|
||||
|
||||
typedef bool
|
||||
@ -456,6 +458,9 @@ GetContextThread(const JSContext *cx);
|
||||
|
||||
JS_FRIEND_API(unsigned)
|
||||
GetContextOutstandingRequests(const JSContext *cx);
|
||||
|
||||
JS_FRIEND_API(PRLock *)
|
||||
GetRuntimeGCLock(const JSRuntime *rt);
|
||||
#endif
|
||||
|
||||
JS_FRIEND_API(JSCompartment *)
|
||||
|
@ -67,7 +67,6 @@
|
||||
#include "jscntxt.h"
|
||||
#if 0
|
||||
js_NextActiveContext, js::TriggerOperationCallback
|
||||
mWatchdogWakeup = JS_NEW_CONDVAR(mJSRuntime->gcLock);
|
||||
#endif
|
||||
|
||||
using namespace mozilla;
|
||||
@ -1980,7 +1979,7 @@ XPCJSRuntime::XPCJSRuntime(nsXPConnect* aXPConnect)
|
||||
JS_EnumerateDiagnosticMemoryRegions(DiagnosticMemoryCallback);
|
||||
#endif
|
||||
JS_SetAccumulateTelemetryCallback(mJSRuntime, AccumulateTelemetryCallback);
|
||||
mWatchdogWakeup = JS_NEW_CONDVAR(mJSRuntime->gcLock);
|
||||
mWatchdogWakeup = JS_NEW_CONDVAR(js::GetRuntimeGCLock(mJSRuntime));
|
||||
if (!mWatchdogWakeup)
|
||||
NS_RUNTIMEABORT("JS_NEW_CONDVAR failed.");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user