mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
No bug - Fix warning spam, r=shu.
This commit is contained in:
parent
c0dddd8180
commit
3ee89269e4
@ -242,16 +242,18 @@ struct ForkJoinOp
|
|||||||
// Locks a JSContext for its scope.
|
// Locks a JSContext for its scope.
|
||||||
class LockedJSContext
|
class LockedJSContext
|
||||||
{
|
{
|
||||||
|
#if defined(JS_THREADSAFE) && defined(JS_ION)
|
||||||
ForkJoinSlice *slice_;
|
ForkJoinSlice *slice_;
|
||||||
|
#endif
|
||||||
JSContext *cx_;
|
JSContext *cx_;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
LockedJSContext(ForkJoinSlice *slice)
|
LockedJSContext(ForkJoinSlice *slice)
|
||||||
: slice_(slice),
|
|
||||||
#if defined(JS_THREADSAFE) && defined(JS_ION)
|
#if defined(JS_THREADSAFE) && defined(JS_ION)
|
||||||
|
: slice_(slice),
|
||||||
cx_(slice->acquireContext())
|
cx_(slice->acquireContext())
|
||||||
#else
|
#else
|
||||||
cx_(NULL)
|
: cx_(NULL)
|
||||||
#endif
|
#endif
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user