Feature #776 ยป 0015-fcthread.c-Replace-NULLs-with-nullptrs.patch
utility/fcthread.c | ||
---|---|---|
***********************************************************************/
|
||
void fc_thread_wait(fc_thread *thread)
|
||
{
|
||
int *return_value = NULL;
|
||
int *return_value = nullptr;
|
||
thrd_join(*thread, return_value);
|
||
}
|
||
... | ... | |
free(data);
|
||
return NULL;
|
||
return nullptr;
|
||
}
|
||
/*******************************************************************//**
|
||
... | ... | |
***********************************************************************/
|
||
void fc_thread_wait(fc_thread *thread)
|
||
{
|
||
void **return_value = NULL;
|
||
void **return_value = nullptr;
|
||
pthread_join(*thread, return_value);
|
||
}
|
||
... | ... | |
***********************************************************************/
|
||
void fc_thread_cond_init(fc_thread_cond *cond)
|
||
{
|
||
pthread_cond_init(cond, NULL);
|
||
pthread_cond_init(cond, nullptr);
|
||
}
|
||
/*******************************************************************//**
|
||
... | ... | |
data->arg = arg;
|
||
data->func = function;
|
||
*thread = CreateThread(NULL, 0, &fc_thread_wrapper, data, 0, NULL);
|
||
*thread = CreateThread(nullptr, 0, &fc_thread_wrapper, data, 0, nullptr);
|
||
if (*thread == NULL) {
|
||
if (*thread == nullptr) {
|
||
return 1;
|
||
}
|
||
... | ... | |
***********************************************************************/
|
||
void fc_mutex_init(fc_mutex *mutex)
|
||
{
|
||
*mutex = CreateMutex(NULL, FALSE, NULL);
|
||
*mutex = CreateMutex(nullptr, FALSE, nullptr);
|
||
}
|
||
/*******************************************************************//**
|