[][src]Function ul_sys::ulViewLockJSContext

pub unsafe extern "C" fn ulViewLockJSContext(view: ULView) -> JSContextRef

Acquire the page's JSContext for use with JavaScriptCore API.

@note This call locks the context for the current thread. You should call ulViewUnlockJSContext() after using the context so other worker threads can modify JavaScript state.

@note The lock is recusive, it's okay to call this multiple times as long as you call ulViewUnlockJSContext() the same number of times.