зеркало из https://github.com/mozilla/pjs.git
Fix intN vs. jsword leftover confusion in context-thread API.
This commit is contained in:
Родитель
64abd56fdf
Коммит
ecaa3142d5
|
@ -4173,15 +4173,15 @@ JS_GetContextThread(JSContext *cx)
|
|||
JS_PUBLIC_API(jsword)
|
||||
JS_SetContextThread(JSContext *cx)
|
||||
{
|
||||
intN old = cx->thread;
|
||||
jsword old = cx->thread;
|
||||
cx->thread = js_CurrentThreadId();
|
||||
return old;
|
||||
}
|
||||
|
||||
JS_PUBLIC_API(intN)
|
||||
JS_PUBLIC_API(jsword)
|
||||
JS_ClearContextThread(JSContext *cx)
|
||||
{
|
||||
intN old = cx->thread;
|
||||
jsword old = cx->thread;
|
||||
cx->thread = 0;
|
||||
return old;
|
||||
}
|
||||
|
|
|
@ -1745,7 +1745,7 @@ JS_GetContextThread(JSContext *cx);
|
|||
extern JS_PUBLIC_API(jsword)
|
||||
JS_SetContextThread(JSContext *cx);
|
||||
|
||||
extern JS_PUBLIC_API(intN)
|
||||
extern JS_PUBLIC_API(jsword)
|
||||
JS_ClearContextThread(JSContext *cx);
|
||||
|
||||
#endif /* JS_THREADSAFE */
|
||||
|
|
Загрузка…
Ссылка в новой задаче