|
Ultralight C++ API 2.0.0
|
#include <Ultralight/JavaScript.h>
This class wraps a JSContextRef (a JavaScript execution context for use with JavaScriptCore) and locks the context on the current thread for the duration of its lifetime.
Public Member Functions | |
| virtual JSContextRef | ctx ()=0 |
| Get the underlying JSContextRef for use with JavaScriptCore C API. | |
| operator JSContextRef () | |
| Typecast to a JSContextRef for use with JavaScriptCore C API. | |
| Public Member Functions inherited from RefCounted | |
| virtual void | AddRef () const =0 |
| Increment the reference count (thread-safe). | |
| virtual void | Release () const =0 |
| Decrement the reference count (thread-safe). | |
| virtual int | ref_count () const =0 |
| Get the current reference count. | |
| virtual WeakControlBlock * | weak_control_block () const |
| Get the control block used to track weak references to this object. | |
Protected Member Functions | |
| virtual | ~JSContext () |
| Protected Member Functions inherited from RefCounted | |
| virtual | ~RefCounted () |
|
protectedvirtual |
|
pure virtual |
Get the underlying JSContextRef for use with JavaScriptCore C API.
| operator JSContextRef | ( | ) |
Typecast to a JSContextRef for use with JavaScriptCore C API.