summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornrootconauto <nrootconauto@gmail.com>2022-11-10 14:51:18 -0500
committernrootconauto <nrootconauto@gmail.com>2022-11-10 14:51:18 -0500
commitcd64c19de8302bd30826913b68807e4ed91fdfbf (patch)
tree72f6d25f0a8147c0ef496727a6c0ff370f2e599d
parent6db34bfa3a9450ef222ca1a5d9497a43a4683ede (diff)
Fixed a mutex issue.
Unlocked mutex in window.c Changed compiler back to clang Bungis is has hired me and is making me write SmallTalk code
-rw-r--r--Makefile2
-rw-r--r--window.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f9e0522..de45bbb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CC=gcc
+CC=clang
CFLAGS=$(shell pkg-config --cflags portaudio-2.0) -Ofast -g3 -lGL -lm -m64 -fno-omit-frame-pointer -DUSE_NETWORKING -DUSE_OPENGL
CFILES=ext/ln/linenoise.c sound.c main.c ext/dyad/src/dyad.c ext/vec/src/vec.c ext/map/src/map.c TOSPrint.c ext/C_Unescaper/escaper.c ext/argtable3/argtable3.c runtime.c poopalloc.c tos_aot.c window.c multic.c vfs.c dbg.c
AFILES=FFI_SYSV.yasm
diff --git a/window.c b/window.c
index 8a9b1fc..c0c74bd 100644
--- a/window.c
+++ b/window.c
@@ -207,6 +207,7 @@ void DrawWindowUpdate(CDrawWindow *win,int8_t *_colors,int64_t internal_width,in
}
#else
XEvent e;
+ pthread_mutex_unlock(&dw->pt);
//Wait for event to sync with server to avoid nasty stuff(push a dummy event for XSync to not hang for a next event)
memset(&e,0,sizeof e);
e.type=Expose;