diff options
| author | steven-na <noreply.github@stvnc.dev> | 2026-10-02 00:28:55 -0700 |
|---|---|---|
| committer | steven-na <noreply.github@stvnc.dev> | 2026-10-02 00:28:55 -0700 |
| commit | 63e984474000b7dfed617818087bb7c755f208a0 (patch) | |
| tree | 645de97d5bf6ecd8489bf611afa3617d8ec4b61a /src | |
| parent | 477ce90d019546e72dd6485139271806881a8e8e (diff) | |
lolmain
Diffstat (limited to 'src')
| -rw-r--r-- | src/common.h | 3 | ||||
| -rw-r--r-- | src/threadpool.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/common.h b/src/common.h index f1e74f8..e679bf9 100644 --- a/src/common.h +++ b/src/common.h @@ -39,3 +39,6 @@ typedef float f32; typedef double f64; #define ARENA_ALIGN (sizeof(void*)) + +#define stz_xstr(a) str(a) +#define stz_str(a) #a diff --git a/src/threadpool.c b/src/threadpool.c index 162fcf2..cbbe3fd 100644 --- a/src/threadpool.c +++ b/src/threadpool.c @@ -95,8 +95,8 @@ thread_pool_t *tp_create(smrt_arena_t *arena, u64 max_jobs, u64 num_threads) { ts_deque_t tsq = ts_deque_create(arena, q); pthread_t *threads = SMRTA_ALLOC_ARRAY(arena, pthread_t, num_threads); - // I just leak this into the arena - worker_args * args = SMRTA_ALLOC_ARRAY(arena, worker_args, num_threads); + // I just leak this into the arena (smartest html coder) + worker_args *args = SMRTA_ALLOC_ARRAY(arena, worker_args, num_threads); pthread_mutex_t *count_mtx = smrt_arena_push(arena, sizeof(pthread_mutex_t), true); pthread_mutex_init(count_mtx, NULL); |