]> git.tue.mpg.de Git - paraslash.git/commit
sched: Directly pass context pointer to pre/post_select().
authorAndre Noll <maan@systemlinux.org>
Thu, 2 Jan 2014 03:24:48 +0000 (03:24 +0000)
committerAndre Noll <maan@systemlinux.org>
Sun, 25 May 2014 13:40:20 +0000 (15:40 +0200)
commit879e52d49df6d00aa9eafe5cccb48bbd24ed4c81
tree537f6fcbc4535426ad8ef040ea8be99d4aa768aa
parent57a04f35f4e97d5f63079620dab3493832a851af
sched: Directly pass context pointer to pre/post_select().

The patch is large, but it's fairly straight forward: Instead of
a task pointer all ->pre_select() and ->post_select() methods now
receive the context pointer that was passed to the scheduler when
the task was registered. This allows to kill the public task_context().

Two pre_select/post_select functions are not directly called by the
scheduler: session_post_select(), generic_recv_pre_select(). These
are changed to receive a proper struct rather than a void pointer.

Note that generic_filter_pre_select() is not changed in this
manner because some filters do not provide a pre_select wrapper but set
task->pre_select to generic_filter_pre_select().
43 files changed:
aacdec_filter.c
afh_recv.c
afs.c
alsa_write.c
amp_filter.c
ao_write.c
audioc.c
audiod.c
client.c
client_common.c
compress_filter.c
dccp_recv.c
fecdec_filter.c
file_write.c
filter.h
filter_common.c
flacdec_filter.c
grab_client.c
http_recv.c
interactive.c
mp3dec_filter.c
oggdec_filter.c
opusdec_filter.c
oss_write.c
osx_write.c
play.c
prebuffer_filter.c
recv.h
recv_common.c
resample_filter.c
sched.c
sched.h
server.c
spxdec_filter.c
stdin.c
stdout.c
sync_filter.c
udp_recv.c
vss.c
wav_filter.c
wmadec_filter.c
write.c
write.h