flip NO_ASYNC; turn on as needed, if a layer requiring it is included

This commit is contained in:
Ryan Fleury
2026-06-27 04:54:30 -07:00
parent 410a8e3afa
commit 969851b6f0
9 changed files with 22 additions and 4 deletions
+3
View File
@@ -179,6 +179,9 @@ internal AC_Artifact ac_artifact_from_key_(Access *access, String8 key, AC_Artif
////////////////////////////////
//~ rjf: Asynchronous Tick
#if !defined(NEED_ASYNC)
# define NEED_ASYNC 1
#endif
internal void ac_async_tick(void);
////////////////////////////////
+3 -2
View File
@@ -101,8 +101,8 @@ main_thread_base_entry_point(int arguments_count, char **arguments)
rd_init(&cmdline);
#endif
#if !NO_ASYNC
//- rjf: launch async threads
#if NEED_ASYNC
Thread *async_threads = 0;
U64 lane_broadcast_val = 0;
{
@@ -137,9 +137,10 @@ main_thread_base_entry_point(int arguments_count, char **arguments)
//- rjf: call into entry point
entry_point(&cmdline);
#if !NO_ASYNC
//- rjf: join async threads
#if NEED_ASYNC
ins_atomic_u32_inc_eval(&global_async_exit);
ins_atomic_u32_inc_eval(&async_loop_again);
cond_var_broadcast(async_tick_start_cond_var);
for EachIndex(idx, async_threads_count)
{
-1
View File
@@ -1,7 +1,6 @@
// Copyright (c) Epic Games Tools
// Licensed under the MIT license (https://opensource.org/license/mit/)
#define NO_ASYNC 1
#define BUILD_CONSOLE_INTERFACE 1
#define BUILD_TITLE "The RAD Debugger (Command Line Launcher)"
#include "base/base_inc.h"
+3
View File
@@ -238,6 +238,9 @@ internal String8 c_data_from_hash(Access *access, U128 hash);
////////////////////////////////
//~ rjf: Asynchronous Tick
#if !defined(NEED_ASYNC)
# define NEED_ASYNC 1
#endif
internal void c_async_tick(void);
#endif // CONTENT_H
+3
View File
@@ -352,6 +352,9 @@ internal DI_EventList di_get_events(Arena *arena);
////////////////////////////////
//~ rjf: Asynchronous Tick
#if !defined(NEED_ASYNC)
# define NEED_ASYNC 1
#endif
internal void di_async_tick(void);
////////////////////////////////
+3
View File
@@ -66,6 +66,9 @@ internal U128 fs_hash_from_path_range(String8 path, Rng1U64 range, U64 endt_us);
////////////////////////////////
//~ rjf: Asynchronous Tick
#if !defined(NEED_ASYNC)
# define NEED_ASYNC 1
#endif
internal void fs_async_tick(void);
#endif // FILE_STREAM_H
+3
View File
@@ -161,6 +161,9 @@ internal HTTP_StatusKind http_status_kind_from_code(HTTP_StatusCode code);
////////////////////////////////////////////////////////////////
//~ rjf: @per_os_impl Top-Level Layer Calls
#if !defined(NEED_ASYNC)
# define NEED_ASYNC 1
#endif
internal void http_init(void);
internal void http_async_tick(void);
+4
View File
@@ -11,6 +11,10 @@ typedef enum SMSV_Status
}
SMSV_Status;
#if !defined(NEED_ASYNC)
# define NEED_ASYNC 1
#endif
internal void smsv_init(void);
internal void smsv_async_tick(void);
internal String8 smsv_cache_path(void);
-1
View File
@@ -16,7 +16,6 @@
#define R_INIT_MANUAL 1
#define FNT_INIT_MANUAL 1
#define RD_INIT_MANUAL 1
#define NO_ASYNC 1
////////////////////////////////