13 #ifndef _CEPTR_VMHOST_H
14 #define _CEPTR_VMHOST_H
18 #define SELF_RECEPTOR_ADDR -1
35 #define MAX_ACTIVE_RECEPTORS 1000
36 #define MAX_RECEPTORS 1000
46 int active_receptor_count;
47 Scape *installed_receptors;
72 void _v_start_vmhost(
VMHost *v);
75 void _v_start_thread(
thread *t,
void *(*start_routine)(
void*),
void *arg);
76 void _v_join_thread(
thread *t);
void _v_send(VMHost *v, ReceptorAddress from, ReceptorAddress to, Aspect aspect, Symbol carrier, T *contents)
Xaddr _v_load_receptor_package(VMHost *v, T *p)
void _v_instantiate_builtins(VMHost *v)
Xaddr _v_install_r(VMHost *v, Xaddr package, T *bindings, char *label)
void * __v_process(void *arg)
receptor implementation header file
VMHost * _v_new()
Creates a new virtual machine host.
void _v_send_signals(VMHost *v, T *signals)
void _v_activate(VMHost *v, Xaddr x)
SemTable * sem
Semantic Table for definitions on this host.
ActiveReceptor active_receptors[MAX_ACTIVE_RECEPTORS]
pointer to array that holds all currently active receptors
Receptor * r
Receptor data for this vm host.
void _v_deliver_signals(VMHost *v, Receptor *sender)