Commit: e368a5d7335193ab2324a00f6ec3a914100f3f56
Parent: 4dc63a26dcf7a06631ba99e20aa742e3fa58d446
Author: Randy Palamar
Date: Wed, 9 Apr 2025 07:42:06 -0600
lib: fix legacy send_data function
The function waits on aquiring to the raw data lock to replicate
the previous behaviour of waiting for the data to be transferred
but it would never release it. This meant that future calls would
fail to acquire the lock and thus never transfer the data.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/helpers/ogl_beamformer_lib.c b/helpers/ogl_beamformer_lib.c
@@ -376,6 +376,7 @@ send_data(char *pipe_name, char *shm_name, void *data, u32 data_size)
beamformer_start_compute(shm_name, 0);
/* TODO(rnp): should we just set timeout on acquiring the lock instead of this? */
try_wait_sync(&g_bp->raw_data_sync, -1, os_wait_on_value);
+ atomic_store(&g_bp->raw_data_sync, 1);
}
return result;
}