nim_duilib/ui_components/cef_control/util/util.h

13 lines
394 B
C
Raw Normal View History

2019-04-19 17:19:57 +08:00
#pragma once
#include "include/cef_task.h"
#include "include/base/cef_bind.h"
#include "include/wrapper/cef_closure_task.h"
#if defined(OS_WIN)
#include <windows.h> // NOLINT(build/include_order)
#endif
#define REQUIRE_UI_THREAD() ASSERT(CefCurrentlyOn(TID_UI));
#define REQUIRE_IO_THREAD() ASSERT(CefCurrentlyOn(TID_IO));
#define REQUIRE_FILE_THREAD() ASSERT(CefCurrentlyOn(TID_FILE));