#define THREAD_NAME_MAX 16
typedef struct reactor_t reactor_t;
-typedef struct reactor_object_t reactor_object_t;
typedef struct thread_t thread_t;
typedef void (*thread_fn)(void *context);
// |thread| may not be NULL.
bool thread_is_self(const thread_t *thread);
+reactor_t *thread_get_reactor(const thread_t *thread);
+
// Returns the name of the given |thread|. |thread| may not be NULL.
const char *thread_name(const thread_t *thread);
-
-// Registers |reactor_object| with the reactor of the given |thread|
-// in a thread safe manner. Neither |thread| nor |reactor_object| may be NULL.
-void thread_register(thread_t *thread, reactor_object_t *reactor_object);
-
-// Unregisters |reactor_object| with the reactor of the given |thread|
-// in a thread safe manner. Does not return until the unregistration is
-// complete. Neither |thread| nor |reactor_object| may be NULL.
-void thread_unregister(thread_t *thread, reactor_object_t *reactor_object);