Rizin
unix-like reverse engineering framework and cli tools
thread.h File Reference
#include <rz_th.h>
#include <rz_types.h>
#include <rz_util/rz_assert.h>

Go to the source code of this file.

Classes

struct  rz_th_sem_t
 
struct  rz_th_lock_t
 
struct  rz_th_cond_t
 
struct  rz_th_t
 

Macros

#define _GNU_SOURCE
 

Functions

RZ_IPI RZ_TH_TID rz_th_self (void)
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Definition at line 10 of file thread.h.

Function Documentation

◆ rz_th_self()

RZ_IPI RZ_TH_TID rz_th_self ( void  )

Definition at line 25 of file thread.c.

25  {
26 #if HAVE_PTHREAD
27  return pthread_self();
28 #elif __WINDOWS__
29  return GetCurrentThread();
30 #else
31 #pragma message("Not implemented on this platform")
32  return (RZ_TH_TID)-1;
33 #endif
34 }