/* thread.h */

#pragma once

typedef struct thread_data_t* thread_t;
typedef void (*thread_func)(void*);

thread_t thread_new  (thread_func tf, void* data);
void     thread_start(thread_t th);
void     thread_free (thread_t th);
void     thread_join (thread_t th);