4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-06 23:54:34 +08:00

just mask signal in sdl_fb.c

This commit is contained in:
prife 2013-01-22 23:51:13 +08:00
parent f5fea40c5e
commit d7f8f375df

View File

@ -141,6 +141,7 @@ static void sdlfb_hw_init(void)
#include <mmsystem.h>
#else
#include <pthread.h>
#include <signal.h>
#endif
#include <stdio.h>
@ -158,8 +159,15 @@ static void *sdl_loop(void *lpParam)
int quit = 0;
SDL_Event event;
int button_state = 0;
rt_device_t device;
#ifndef _WIN32
sigset_t sigmask, oldmask;
/* set the getchar without buffer */
sigfillset(&sigmask);
pthread_sigmask(SIG_BLOCK, &sigmask, &oldmask);
#endif
sdlfb_hw_init();
device = rt_device_find("sdl");