mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-18 21:29:18 +02:00
Formatting
This commit is contained in:
parent
d7f624ad24
commit
f59ce9999e
2 changed files with 3 additions and 4 deletions
|
@ -443,7 +443,7 @@ extern "C" {
|
|||
* It is compatible with `rng_get_bytes()` from libtomcrypt so you could
|
||||
* provide that one and then set `ltm_rng = rng_get_bytes;` */
|
||||
extern unsigned long (*ltm_rng)(unsigned char *out, unsigned long outlen,
|
||||
void (*callback)(void));
|
||||
void(*callback)(void));
|
||||
extern void (*ltm_rng_callback)(void);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -7140,9 +7140,8 @@ void *Cyc_init_thread(object thread_and_thunk, int argc, object * args)
|
|||
ck_pr_cas_int((int *)&(thd->thread_state), CYC_THREAD_STATE_NEW,
|
||||
CYC_THREAD_STATE_RUNNABLE);
|
||||
if (ck_pr_cas_int(&cyclone_thread_key_create, 1, 0)) {
|
||||
int r =
|
||||
pthread_key_create(&cyclone_thread_key,
|
||||
(void (*)(void *))Cyc_cancel_thread);
|
||||
int r = pthread_key_create(&cyclone_thread_key,
|
||||
(void (*)(void *))Cyc_cancel_thread);
|
||||
assert(r == 0);
|
||||
}
|
||||
pthread_setspecific(cyclone_thread_key, thd);
|
||||
|
|
Loading…
Add table
Reference in a new issue