Commit: c7385ea30846f9c182641541d7e10bb7874577c5 Parent: 91ee977d233f5d7d8323b1dc7ac4be6cb6abbe83 Author: Randy Palamar Date: Sun, 27 Jul 2025 06:22:03 -0600 lib: actually write set_global_timeout function not just the prototype Diffstat:
M | helpers/ogl_beamformer_lib.c | | | 12 | ++++++++++++ |
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/helpers/ogl_beamformer_lib.c b/helpers/ogl_beamformer_lib.c @@ -151,6 +151,18 @@ beamformer_get_last_error_string(void) return beamformer_error_string(beamformer_get_last_error()); } +b32 +beamformer_set_global_timeout(i32 timeout_ms) +{ + b32 result = timeout_ms >= -1; + if (result) { + g_beamformer_library_context.timeout_ms = timeout_ms; + } else { + g_beamformer_library_context.last_error = BF_LIB_ERR_KIND_INVALID_TIMEOUT; + } + return result; +} + function b32 validate_pipeline(i32 *shaders, i32 shader_count, BeamformerDataKind data_kind) {