[*] Use public headers
This commit is contained in:
parent
3a02a7b1b1
commit
7a62c089a5
@ -1,7 +1,8 @@
|
||||
// TODO: copyright header
|
||||
|
||||
#include "threading.h"
|
||||
#include "KInternal.hpp"
|
||||
#include <AuroraCommon.hpp>
|
||||
#include <Aurora/Kernel.hpp>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
@ -34,7 +35,7 @@ extern "C"
|
||||
|
||||
int ZSTD_pthread_cond_init(ZSTD_pthread_cond_t* a, ZSTD_pthread_mutex_t* b)
|
||||
{
|
||||
if (*b) return 1;
|
||||
if (!*b) return 1;
|
||||
auto mutex = reinterpret_cast<Aurora::Threading::IConditionalMutex*>(*b);
|
||||
*a = Aurora::Threading::ConditionalNew(mutex);
|
||||
return *a == nullptr;
|
||||
@ -79,7 +80,7 @@ extern "C"
|
||||
};
|
||||
|
||||
auto handle = Aurora::Threading::NewThread(handler);
|
||||
if (handle != nullptr) return 1;
|
||||
if (!handle) return 1;
|
||||
|
||||
handle->Run();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user