#include <FBaseSysLog.h>
//#include "FUiAnim_GlLoader.h"
-//#define PRINT fprintf(stderr, __VA_ARGS__)
+//#define PRINT(...) fprintf(stderr, __VA_ARGS__)
#define PRINT(...)
using namespace Tizen::Base;
PRINT("glGetError() (%#x) %s \n", error, __FUNCTION__); \
SysLog(NID_UI_ANIM, "glGetError() (%#x) %s", error, __FUNCTION__); \
} \
+ else \
+ { \
+ PRINT("%s\n", __FUNCTION__); \
+ } \
}
_GlRenderManager::~_GlRenderManager(void)
{
- // TODO: enable
-// pthread_join(__threadInfo, NULL);
+ _AutoMutex commandTransactionLock(__commandTransaction);
+ _AutoMutex commandLock(__commandLock);
+
+ __commandId = COMMAND_EXIT;
+ __commandRequest.SendSignal();
+
+ __commandReply.WaitForSignal(&__commandLock);
+
+ pthread_join(__threadInfo, NULL);
delete [] __pRenderQueue;
default:
PRINT("UNKNOWN COMMAND (%d)\n", commandId);
+ needReply = false;
break;
}
pThis->__pGlContext->PopContext();
#endif
+ {
+ _AutoMutex commandLock(pThis->__commandLock);
+
+ pThis->__commandResult = E_SUCCESS;
+ pThis->__commandReply.SendSignal();
+ }
+
return null;
}