use System V semaphore set instead of posix semphore for shared surface

This commit is contained in:
Vincent Wei
2020-02-01 21:39:29 +08:00
parent 8bfded59be
commit 4bfabc20a7

View File

@@ -517,16 +517,16 @@ static inline void _dc_step_y (PDC pdc, int step)
# ifdef _MGSCHEMA_COMPOSITING
# define BLOCK_DRAW_SEM(pdc) \
do { \
if (pdc->surface->shared_header) \
sem_wait (&pdc->surface->shared_header->sem_lock); \
# define BLOCK_DRAW_SEM(pdc) \
do { \
if (pdc->surface->shared_header) \
LOCK_SURFACE_SEM (pdc->surface->shared_header->sem_num); \
} while (0)
# define UNBLOCK_DRAW_SEM(pdc) \
do { \
if (pdc->surface->shared_header) \
sem_post (&pdc->surface->shared_header->sem_lock); \
# define UNBLOCK_DRAW_SEM(pdc) \
do { \
if (pdc->surface->shared_header) \
UNLOCK_SURFACE_SEM (pdc->surface->shared_header->sem_num); \
} while (0)
# define IS_SCREEN_SURFACE(pdc) \