diff options
author | GiWoong Kim <giwoong.kim@samsung.com> | 2014-05-08 11:49:12 +0900 |
---|---|---|
committer | GiWoong Kim <giwoong.kim@samsung.com> | 2014-05-12 11:03:50 +0900 |
commit | 60226af4c94af357759275583b21a4afeadfadb6 (patch) | |
tree | 7bd5bac79b9516928173600d85c606cde15014b3 /ui | |
parent | f53705eb0170fc51cfc2f2d4441d440844534111 (diff) | |
download | qemu-tizen_qemu_2.0.tar.gz qemu-tizen_qemu_2.0.tar.bz2 qemu-tizen_qemu_2.0.zip |
display: source clean-uptizen_qemu_2.0
convert pthread to qemu_thread
modified function name & etc
Change-Id: I022a36e51186367b87283fc07754847a98413f4e
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/console.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ui/console.c b/ui/console.c index 311e13c6bf..1d714e2624 100644 --- a/ui/console.c +++ b/ui/console.c @@ -30,8 +30,7 @@ #include "trace.h" #ifdef SDL_THREAD -#include <pthread.h> -extern pthread_mutex_t sdl_mutex; +extern QemuMutex sdl_mutex; #endif #define DEFAULT_BACKSCROLL 512 @@ -1324,7 +1323,7 @@ void register_displaychangelistener(DisplayChangeListener *dcl) } if (dcl->ops->dpy_gfx_switch) { #ifdef SDL_THREAD - pthread_mutex_lock(&sdl_mutex); + qemu_mutex_lock(&sdl_mutex); #endif if (con) { @@ -1337,7 +1336,7 @@ void register_displaychangelistener(DisplayChangeListener *dcl) } #ifdef SDL_THREAD - pthread_mutex_unlock(&sdl_mutex); + qemu_mutex_unlock(&sdl_mutex); #endif } } @@ -1409,7 +1408,7 @@ void dpy_gfx_replace_surface(QemuConsole *con, DisplayChangeListener *dcl; #ifdef SDL_THREAD - pthread_mutex_lock(&sdl_mutex); + qemu_mutex_lock(&sdl_mutex); #endif con->surface = surface; @@ -1423,7 +1422,7 @@ void dpy_gfx_replace_surface(QemuConsole *con, } #ifdef SDL_THREAD - pthread_mutex_unlock(&sdl_mutex); + qemu_mutex_unlock(&sdl_mutex); #endif qemu_free_displaysurface(old_surface); |