Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[worker] Add interface for handling blocking tasks asynchronously. Co…
…ntributes to JB#32840

MCE mainloop should stay responsive at all times, but there are
things like display power up/down ioctls that can block for hundreds
of milliseconds.

Add interface that allows such operations to be carried out asynchronously
in a worker thread.
  • Loading branch information
spiiroin committed Nov 10, 2015
1 parent fbd0e96 commit 783037b
Show file tree
Hide file tree
Showing 5 changed files with 842 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .depend
Expand Up @@ -360,6 +360,16 @@ mce-wltimer.pic.o:\
mce-wltimer.h\
mce.h\

mce-worker.o:\
mce-worker.c\
mce-log.h\
mce-worker.h\

mce-worker.pic.o:\
mce-worker.c\
mce-log.h\
mce-worker.h\

mce.o:\
mce.c\
builtin-gconf.h\
Expand All @@ -379,6 +389,7 @@ mce.o:\
mce-sensorfw.h\
mce-wakelock.h\
mce-wltimer.h\
mce-worker.h\
mce.h\
modetransition.h\
powerkey.h\
Expand All @@ -403,6 +414,7 @@ mce.pic.o:\
mce-sensorfw.h\
mce-wakelock.h\
mce-wltimer.h\
mce-worker.h\
mce.h\
modetransition.h\
powerkey.h\
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Expand Up @@ -282,6 +282,7 @@ MCE_CORE += mce-gconf.c
MCE_CORE += mce-hbtimer.c
MCE_CORE += mce-wltimer.c
MCE_CORE += mce-wakelock.c
MCE_CORE += mce-worker.c
MCE_CORE += event-input.c
MCE_CORE += event-switches.c
MCE_CORE += mce-hal.c
Expand Down Expand Up @@ -547,6 +548,8 @@ NORMALIZE_USES_SPC =\
mce-sensorfw.h\
mce-wakelock.c\
mce-wakelock.h\
mce-worker.c\
mce-worker.h\
modetransition.h\
modules/alarm.c\
modules/audiorouting.c\
Expand Down

0 comments on commit 783037b

Please sign in to comment.