@@ -512,10 +512,12 @@ static void MaybeInitializeLibUring(void)
|
||||
{
|
||||
if (SDL_ShouldInit(&liburing_init)) {
|
||||
if (LoadLibUring()) {
|
||||
SDL_LogBackend("asyncio", "liburing");
|
||||
CreateAsyncIOQueue = SDL_SYS_CreateAsyncIOQueue_liburing;
|
||||
QuitAsyncIO = SDL_SYS_QuitAsyncIO_liburing;
|
||||
AsyncIOFromFile = SDL_SYS_AsyncIOFromFile_liburing;
|
||||
} else { // can't use liburing? Use the "generic" threadpool implementation instead.
|
||||
SDL_LogBackend("asyncio", "generic");
|
||||
CreateAsyncIOQueue = SDL_SYS_CreateAsyncIOQueue_Generic;
|
||||
QuitAsyncIO = SDL_SYS_QuitAsyncIO_Generic;
|
||||
AsyncIOFromFile = SDL_SYS_AsyncIOFromFile_Generic;
|
||||
|
||||
@@ -511,10 +511,12 @@ static void MaybeInitializeWinIoRing(void)
|
||||
{
|
||||
if (SDL_ShouldInit(&ioring_init)) {
|
||||
if (LoadWinIoRing()) {
|
||||
SDL_LogBackend("asyncio", "ioring");
|
||||
CreateAsyncIOQueue = SDL_SYS_CreateAsyncIOQueue_ioring;
|
||||
QuitAsyncIO = SDL_SYS_QuitAsyncIO_ioring;
|
||||
AsyncIOFromFile = SDL_SYS_AsyncIOFromFile_ioring;
|
||||
} else { // can't use ioring? Use the "generic" threadpool implementation instead.
|
||||
SDL_LogBackend("asyncio", "generic");
|
||||
CreateAsyncIOQueue = SDL_SYS_CreateAsyncIOQueue_Generic;
|
||||
QuitAsyncIO = SDL_SYS_QuitAsyncIO_Generic;
|
||||
AsyncIOFromFile = SDL_SYS_AsyncIOFromFile_Generic;
|
||||
|
||||
Reference in New Issue
Block a user