#include "ScribbleDefine.h"

Go to the source code of this file.
Functions | |
| int | initSaveThread (PScribbleUICtx pScribbleUICtx) |
| void | notifySave (PScribbleUICtx pScribbleUICtx) |
| void | exitSaveThread () |
| void exitSaveThread | ( | ) |
Definition at line 133 of file ScribbleSaveThread.c.
00134 { 00135 SB_TIMEDISPLAY("save-thread ready to exit\n"); 00136 g_mutex_lock(imgdata_mutex); 00137 s_bQuit=TRUE; 00138 g_cond_signal(data_cond); 00139 g_mutex_unlock(imgdata_mutex); 00140 00141 g_thread_join(s_threadSave); 00142 SB_TIMEDISPLAY("save-thread exit\n"); 00143 //free resources. 00144 //g_mutex_free(imgdata_mutex); 00145 //g_cond_free(data_cond); 00146 }
| int initSaveThread | ( | PScribbleUICtx | pScribbleUICtx | ) |
Copyright (C) 2005-2008 iRex Technologies B.V. All rights reserved.
| void notifySave | ( | PScribbleUICtx | pScribbleUICtx | ) |
Definition at line 116 of file ScribbleSaveThread.c.
00117 { 00118 SB_TIMEDISPLAY("start\n"); 00119 00120 g_mutex_lock(imgdata_mutex); 00121 SB_TIMEDISPLAY("fetch pixbuf\n"); 00122 s_pixbuf = gdk_pixbuf_get_from_drawable(NULL, 00123 (GdkDrawable *)pScribbleUICtx->pixmap, 00124 NULL,0,0,0,0,-1,-1); 00125 SB_TIMEDISPLAY("end fetch\n"); 00126 s_bNeedSaveResultPage=TRUE; 00127 g_cond_signal(data_cond); 00128 g_mutex_unlock(imgdata_mutex); 00129 SB_TIMEDISPLAY("end\n"); 00130 }
1.5.6