Back to index

lightning-sunbird  0.9+nobinonly
Typedefs | Functions | Variables
generic_threads.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* GC_mark_range_proc )(char *begin, char *end)
 Passed to a thread marking function, to allow it to mark a range of memory.
typedef void(* GC_generic_mark_all_stacks_proc )(GC_mark_range_proc marker)
 Generic all stack marking function.
typedef void(* GC_generic_proc )(void *mutex)
 Generic mutual exclusion facility.

Functions

void GC_generic_init_threads (GC_generic_mark_all_stacks_proc mark_all_stacks, void *mutex, GC_generic_proc locker, GC_generic_proc unlocker, GC_generic_proc stopper, GC_generic_proc starter)

Variables

GC_generic_mark_all_stacks_proc GC_generic_mark_all_stacks
voidGC_generic_mutex
GC_generic_proc GC_generic_locker
GC_generic_proc GC_generic_unlocker
GC_generic_proc GC_generic_stopper
GC_generic_proc GC_generic_starter

Typedef Documentation

Generic all stack marking function.

Definition at line 25 of file generic_threads.h.

typedef void(* GC_generic_proc)(void *mutex)

Generic mutual exclusion facility.

Definition at line 32 of file generic_threads.h.

typedef void(* GC_mark_range_proc)(char *begin, char *end)

Passed to a thread marking function, to allow it to mark a range of memory.

Definition at line 20 of file generic_threads.h.


Function Documentation

void GC_generic_init_threads ( GC_generic_mark_all_stacks_proc  mark_all_stacks,
void mutex,
GC_generic_proc  locker,
GC_generic_proc  unlocker,
GC_generic_proc  stopper,
GC_generic_proc  starter 
)

Definition at line 49 of file generic_threads.c.

{
  GC_generic_mark_all_stacks = mark_all_stacks;
  GC_generic_mutex = mutex;
  GC_generic_locker = locker;
  GC_generic_unlocker = unlocker;
  GC_generic_stopper = stopper;
  GC_generic_starter = starter;
       
  GC_dont_expand = 1;
  // GC_set_max_heap_size(20L * 1024L * 1024L);
}

Variable Documentation

Definition at line 44 of file generic_threads.c.

Definition at line 42 of file generic_threads.c.

Definition at line 43 of file generic_threads.c.

Definition at line 47 of file generic_threads.c.

Definition at line 46 of file generic_threads.c.

Definition at line 45 of file generic_threads.c.