diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-02-25 16:17:03 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-02-25 16:17:03 +0100 |
commit | f7da5b7dde8b9c342c805edd65e66febf705ed48 (patch) | |
tree | 51e23994d8c3b686d70ac1d9d99f539bd0c26ef2 /src/ppusim/work.h | |
parent | 0d7bd92672acb449761def9e234934c4a9a05129 (diff) |
limit thread count to core count
Diffstat (limited to 'src/ppusim/work.h')
-rw-r--r-- | src/ppusim/work.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ppusim/work.h b/src/ppusim/work.h index 1171a22..c1a5148 100644 --- a/src/ppusim/work.h +++ b/src/ppusim/work.h @@ -4,11 +4,14 @@ #include "ppu/consts.h" +extern unsigned g_hh_ppusim_core_count; +extern pthread_t* g_hh_ppusim_threads; + typedef uint8_t hh_s_ppusim_color[3]; typedef hh_s_ppusim_color hh_s_ppusim_scanline[HH_PPU_SCREEN_WIDTH]; typedef hh_s_ppusim_scanline hh_s_ppusim_screen[HH_PPU_SCREEN_HEIGHT]; -void* hh_ppusim_draw_scanline(void*); +void* hh_ppusim_draw_thread(void*); void hh_ppusim_draw_frame(SDL_Renderer*); |