Skip to content

Commit

Permalink
Remove default threadpool (#264)
Browse files Browse the repository at this point in the history
It's not used for anything and threadpools can be created manually.
  • Loading branch information
pusewicz authored Mar 4, 2025
1 parent 6fc91b7 commit 705a472
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/cute_app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,11 +365,6 @@ CF_Result cf_make_app(const char* window_title, CF_DisplayID display_id, int x,
}
}

int num_threads_to_spawn = cf_core_count() - 1;
if (num_threads_to_spawn) {
app->threadpool = cf_make_threadpool(num_threads_to_spawn);
}

CF_Result err = cf_fs_init(argv0);
if (cf_is_error(err)) {
CF_ASSERT(0);
Expand Down Expand Up @@ -402,7 +397,6 @@ void cf_destroy_app()
if (app->device) SDL_ReleaseWindowFromGPUDevice(app->device, app->window);
SDL_DestroyWindow(app->window);
if (app->device) SDL_DestroyGPUDevice(app->device);
destroy_threadpool(app->threadpool);
SDL_Quit();
cs_shutdown();
CF_Image* easy_sprites = app->easy_sprites.items();
Expand Down
1 change: 0 additions & 1 deletion src/internal/cute_app_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ struct CF_App
SDL_GPUDevice* device = NULL;
cs_context_t* cute_sound = NULL;
bool spawned_mix_thread = false;
CF_Threadpool* threadpool = NULL;
void (*on_shader_changed_fn)(const char* path, void* udata) = NULL;
void* on_shader_changed_udata = NULL;
bool shader_directory_set = false;
Expand Down

0 comments on commit 705a472

Please sign in to comment.