C/C++ API Reference
AVM2.h
The AVM2.h header file contains various low-level Crossbridge-specific utility functions and macros.
Function | Description |
---|---|
__avm2_apply_args |
Returns a pointer to data describing how to perform a call with the same arguments as were passed to the current function. For more information, see http://tigcc.ticalc.org/doc/gnuexts.html#SEC67 |
__avm2_apply |
Invokes function with a copy of the parameters described by arguments and size. For more information, see http://tigcc.ticalc.org/doc/gnuexts.html#SEC67 Parameters:
|
__avm2_return |
Returns the value described by result from the containing function. Parameters:
|
__builtin_va_arg_pack |
Error. Not supported in Crossbridge. |
__builtin_va_arg_pack_len |
Error. Not supported in Crossbridge. |
__builtin_apply_args |
For more information, see http://tigcc.ticalc.org/doc/gnuexts.html#SEC67. |
__builtin_apply |
For more information, see http://tigcc.ticalc.org/doc/gnuexts.html#SEC67. |
__builtin_return |
For more information, see http://tigcc.ticalc.org/doc/gnuexts.html#SEC67. |
avm2_locked_id |
Returns the id of the lock owner. Low-level concurrency primitives -- expect hangs or worse if not used properly. Non-recursive mutexes. Parameters:
|
avm2_lock |
Low-level concurrency primitives -- expect hangs or worse if not used properly. Non-recursive mutexes. Parameters:
|
avm2_lock_id |
Low-level concurrency primitives -- expect hangs or worse if not used properly. Non-recursive mutexes. Parameters:
|
avm2_unlock |
Super low-level concurrency primitives -- expect hangs or worse if not used properly. Non-recursive mutexes. Parameters:
|
Address token-based conditions | |
avm2_msleep |
Waits for addr to be woken for timo milliseconds (or forever if timo==0). Releases mutex on entry, re-acquired before return 0 on timeout, non-zero on wake. Parameters:
|
avm2_wake |
Wake any threads msleeping on addr, returns non-zero if a thread was woken. Parameters:
Example Usage: See the 09_pthreads sample |
avm2_wake_one |
Wake zero (if none msleeping on addr) or one threads msleeping on addr, returns non-zero if any thread was woken. Parameters:
|
avm2_thr_impersonate |
Call proc(arg) while impersonating the thread specified by tid. Parameters:
|
avm2_ui_thunk |
Call proc(arg) on the UI Worker as calling thread. Parameters:
|
avm2_is_ui_worker |
Returns non-zero if running on the UI Worker. |
avm2_wait_for_ui_frame |
Wait for a frame event or until timeout. Returns 0 on timeout. Parameters:
|
avm2_self_lock |
Lock this thread to this Worker -- recursive OK. |
avm2_self_unlock |
Unlock this thread. |
avm2_self_msleep |
Works like Parameters:
Example Usage: See the 09_pthreads sample |
avm2_tramp_alloc |
Trampoline support. For more information, see sdk/usr/share/avm2_tramp.cpp. Parameters:
|
avm2_tramp_free |
Trampoline support. For more information, see sdk/usr/share/avm2_tramp.cpp. Parameters:
|