OSDN Git Service

Extend the threading library to back thread with an event queue.
authorSharvil Nanavati <sharvil.nanavati@gmail.com>
Sat, 5 Jul 2014 00:51:29 +0000 (17:51 -0700)
committerSharvil Nanavati <sharvil@google.com>
Wed, 16 Jul 2014 20:25:42 +0000 (13:25 -0700)
commit94347a59972868cf6d74f92cf793eb0b4b97c45a
tree039fa1dfbd607f926c5bf3423ee04b98627d7d12
parentab606b5ecd59ab9fd8a59cf4437993a44068a6ee
Extend the threading library to back thread with an event queue.

This change allows arbitrary functions to be called on a given
thread which will clean up much of the dispatch code in bluedroid.
Looking forward, this code will be extended to allow additional objects
and queues to be attached to a thread for more customizable dispatch.

Change-Id: Id3a16256c264e3d35e6db5a562cb0e7762676457
osi/include/thread.h
osi/src/thread.c
osi/test/thread_test.cpp