Skip to content

Commit

Permalink
More docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmaygarde committed Mar 22, 2019
1 parent c3e7b18 commit 4fdbb34
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions shell/platform/embedder/embedder.h
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,10 @@ typedef void (*FlutterTaskRunnerPostTaskCallback)(
uint64_t /* target time nanos */,
void* /* user data */);

// An interface used by the Flutter engine to execute tasks at the target time
// on a specified thread. There should be a 1-1 relationship between a thread
// and a task runner. It is undefined behavior to run a task on a thread that is
// not associated with its task runner.
typedef struct {
// The size of this struct. Must be sizeof(FlutterTaskRunnerDescription).
size_t struct_size;
Expand All @@ -469,8 +473,9 @@ typedef struct {
// This field is required.
BoolCallback runs_task_on_current_thread_callback;
// May be called from any thread. The given task should be executed by the
// embedder by calling FlutterEngineRunTask at the given target time. The
// system monotonic clock should be used for the target time.
// embedder on the thread associated with that task runner by calling
// FlutterEngineRunTask at the given target time. The system monotonic clock
// should be used for the target time.
//
// This field is required.
FlutterTaskRunnerPostTaskCallback post_task_callback;
Expand Down

0 comments on commit 4fdbb34

Please sign in to comment.