ogl_beamforming

Ultrasound Beamforming Implemented with OpenGL
git clone anongit@rnpnr.xyz:ogl_beamforming.git
Log | Files | Refs | Feed | Submodules | LICENSE

Commit: 137c67cd16c5da8bccfab8243558f13bed2ffa52
Parent: 3e9997119276b1249e7afdf2565c602e37615ae2
Author: Randy Palamar
Date:   Thu, 11 Jul 2024 16:11:40 -0600

win32: shared memory handle must remain open for the memory to exist

Diffstat:
Mos_win32.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/os_win32.c b/os_win32.c @@ -127,12 +127,11 @@ os_open_shared_memory_area(char *name) BeamformerParameters *new; new = MapViewOfFile(h, FILE_MAP_ALL_ACCESS, 0, 0, sizeof(BeamformerParameters)); - CloseHandle(h); return new; } -/* NOTE: handle is already closed and view will be unmapped when program terminates */ +/* NOTE: closing the handle releases the memory and this happens when program terminates */ static void os_remove_shared_memory(char *name) {