shithub: tinygl

Download patch

ref: 12e35848c7536a49fec91dc6b54a715977352d65
parent: 060fbc936afc1c86a140e1744d23cebbedd2a31e
author: David <gek@katherine>
date: Fri Mar 5 19:34:19 EST 2021

Update

--- a/SDL_Examples/include/lockstepthread.h
+++ b/SDL_Examples/include/lockstepthread.h
@@ -49,7 +49,7 @@
 	pthread_barrier_wait(&t->myBarrier);
 	//exit(1)
 	if(pthread_mutex_lock(&t->myMutex))
-		exit(1)
+		exit(1);
 	t->state = 1;
 	//exit(1)
 }
@@ -59,7 +59,7 @@
 	if(!t->isThreadLive)return;
 	//exit(1)
 	if(pthread_mutex_unlock(&(t->myMutex)))
-		exit(1)
+		exit(1);
 	//exit(1)
 	pthread_barrier_wait(&t->myBarrier);
 	t->state = -1;
@@ -116,7 +116,7 @@
 	t->isThreadLive = 1;
 	t->shouldKillThread = 0;
 	if(pthread_mutex_lock(&t->myMutex))
-		exit(1)
+		exit(1);
 	t->state = 1; //LOCKED
 	pthread_create(
 		&t->myThread,