From d6eae17d0fe74f4081c0f325eb66c6e9b9dacf85 Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Sat, 1 Feb 2020 21:42:16 +0800 Subject: [PATCH] use system v semaphore set instead of poxis semaphore --- src/include/newgal.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/include/newgal.h b/src/include/newgal.h index 9d3dfc6d..41264d9c 100644 --- a/src/include/newgal.h +++ b/src/include/newgal.h @@ -120,13 +120,13 @@ typedef int (*GAL_blit)(struct GAL_Surface *src, GAL_Rect *srcrect, * than the creator. */ typedef struct _SharedSurfaceHeader { -#if 1 +#if 0 /* The semaphore for this shared surface */ sem_t sem_lock; #else - /* The SysV semaphore set identifier for synchronizing the shared surfaces. */ - int semid; - /* The number of semphore for this surface. */ + /* The number of semphore for this surface. + The SysV semaphore set id for synchronizing this shared surface: + SHAREDRES_SEMID_SHARED_SURF. */ int sem_num; #endif