Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
memory
/
jemalloc
/
src
/
test
/
include
/
test
/
thd.h
blob: 47a51262e990000795fdf183f64fe2816b863b85 [
file
] [
log
] [
blame
]
/* Abstraction layer for threading in tests. */
#ifdef
_WIN32
typedef
HANDLE
thd_t
;
#else
typedef
pthread_t
thd_t
;
#endif
void
thd_create
(
thd_t
*
thd
,
void
*(*
proc
)(
void
*),
void
*
arg
);
void
thd_join
(
thd_t
thd
,
void
**
ret
);