OSDN Git Service

Remove dependency on GKI tasks from BTIF media task.
authorSharvil Nanavati <sharvil@google.com>
Mon, 2 Mar 2015 23:34:21 +0000 (15:34 -0800)
committerAndre Eisenbach <eisenbach@google.com>
Mon, 16 Mar 2015 23:51:42 +0000 (16:51 -0700)
commit23e561a1f374557d6030b497337a1c96e9bb6aa4
tree021d50c5c1c834b805705fc80b1bd9aaf56beb67
parentd553708949d37e1e37a27ad08cc1ec705e706b3d
Remove dependency on GKI tasks from BTIF media task.

The previous code started a thread and posted a long-running function
to the thread's event loop. In essence, it created a thread and ran
a custom thread main that did its own event handling using GKI_wait.

The new code doesn't use GKI_wait or GKI_send_event at all. Instead,
it uses thread_post and the thread's reactor to enqueue and dispatch
events.
btif/src/btif_media_task.c
include/gki_target.h