Defines | Functions | Variables

objs/kite_thread.c File Reference

#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <setjmp.h>
#include <pthread.h>
#include <signal.h>
#include "objs/kite_object.h"
#include "objs/kite_gc.h"
#include "kite_vm.h"
#include <unistd.h>

Defines

#define PTHREAD_STACK_SIZE   4194304

Functions

void kite_handle_signal (int sig)
kite_thread_t * kite_new_thread_without_start (kite_vm_t *vm)
void kite_start_bytecode (kite_thread_t *thd, void *start)
void kite_start_compiled (kite_thread_t *thd, void *start)
kite_thread_t * kite_new_thread_bytecode (kite_vm_t *vm, void *start)
kite_thread_t * kite_new_thread_compiled (kite_vm_t *vm, void *start)
void kite_join_thread (kite_vm_t *vm, kite_thread_t *thd)
void kite_exit_thread (kite_vm_t *vm, kite_thread_t *thd)

Variables

struct kite_object_tkite_signal_handlers [NSIG+1]

Define Documentation

#define PTHREAD_STACK_SIZE   4194304

Function Documentation

void kite_exit_thread ( kite_vm_t *  vm,
kite_thread_t *  thd 
)

References kite_join_thread().

void kite_handle_signal ( int  sig  ) 
void kite_join_thread ( kite_vm_t *  vm,
kite_thread_t *  thd 
)

Referenced by kite_exit_thread().

kite_thread_t* kite_new_thread_bytecode ( kite_vm_t *  vm,
void *  start 
)
kite_thread_t* kite_new_thread_compiled ( kite_vm_t *  vm,
void *  start 
)
kite_thread_t* kite_new_thread_without_start ( kite_vm_t *  vm  ) 
void kite_start_bytecode ( kite_thread_t *  thd,
void *  start 
)

References PTHREAD_STACK_SIZE.

Referenced by kite_new_thread_bytecode().

void kite_start_compiled ( kite_thread_t *  thd,
void *  start 
)

References PTHREAD_STACK_SIZE.

Referenced by kite_new_thread_compiled().


Variable Documentation