PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/vendor/gc/include/private/darwin_stop_world.h

http://github.com/feyeleanor/RubyGoLightly
C++ Header | 22 lines | 16 code | 6 blank | 0 comment | 0 complexity | deb33a288bb6bee23ac46c1e0717708e MD5 | raw file
 1#ifndef GC_DARWIN_STOP_WORLD_H
 2#define GC_DARWIN_STOP_WORLD_H
 3
 4#if !defined(GC_DARWIN_THREADS)
 5#error darwin_stop_world.h included without GC_DARWIN_THREADS defined
 6#endif
 7
 8#include <mach/mach.h>
 9#include <mach/thread_act.h>
10
11struct thread_stop_info {
12    mach_port_t mach_thread;
13};
14
15struct GC_mach_thread {
16  thread_act_t thread;
17  int already_suspended;
18};
19
20void GC_darwin_register_mach_handler_thread(mach_port_t thread);
21
22#endif