Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/datum_coinbaser.c
Original file line number Diff line number Diff line change
Expand Up @@ -872,8 +872,13 @@ void *datum_coinbaser_thread(void *ptr) {
}

int datum_coinbaser_init(void) {
// TODO: Handle failed (rare, not priority)
pthread_t pthread_datum_coinbaser_thread;
pthread_create(&pthread_datum_coinbaser_thread, NULL, datum_coinbaser_thread, NULL);
int result = pthread_create(&pthread_datum_coinbaser_thread, NULL, datum_coinbaser_thread, NULL);

if (result != 0) {
DLOG_FATAL("datum_coinbaser_init: pthread_create failed with code %d", result);
return -1;
}

return 0;
}