![]() | Fun 0.41.5 The programming language that makes You have fun |
Implements OP_THREAD_SPAWN to run a function in a background thread. More...
Go to the source code of this file.
Functions | |
| if (inst.operand==1) | |
| free_value (fnv) | |
| push_value (vm, make_int(tid)) | |
Variables | |
| case | OP_THREAD_SPAWN |
| Value | fnv = pop_value(vm) |
| int | tid = fun_thread_spawn(fnv, argsMaybe, inst.operand == 1) |
| break | |
Implements OP_THREAD_SPAWN to run a function in a background thread.
Behavior:
Errors:
Definition in file thread_spawn.c.
| free_value | ( | fnv | ) |
| if | ( | inst. | operand = =1 | ) |
Definition at line 25 of file thread_spawn.c.
| break |
Definition at line 33 of file thread_spawn.c.
| Value fnv = pop_value(vm) |
Definition at line 28 of file thread_spawn.c.
| case OP_THREAD_SPAWN |
Definition at line 22 of file thread_spawn.c.
| int tid = fun_thread_spawn(fnv, argsMaybe, inst.operand == 1) |
Definition at line 29 of file thread_spawn.c.