forked from cztomczak/cef2go
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtask.c
More file actions
31 lines (19 loc) · 684 Bytes
/
task.c
File metadata and controls
31 lines (19 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) 2014 The cef2go authors. All rights reserved.
// License: BSD 3-clause.
// Website: https://github.com/fromkeith/cef2go
#include "_cgo_export.h"
#include "cefBase.h"
#include "include/capi/cef_task_capi.h"
void CEF_CALLBACK cef_task_t_execute(struct _cef_task_t* self) {
go_TaskExecute(self);
}
void initialize_task(struct _cef_task_t* self) {
goDebugLog("initialize_task\n");
self->base.size = sizeof(cef_task_t);
initialize_cef_base((cef_base_t*) self, "task");
// callbacks
self->execute = cef_task_t_execute;
}
void helper_cef_post_task(cef_thread_id_t threadId, struct _cef_task_t* what) {
cef_post_task(threadId, what);
}