typedef struct _xthread xthread;