OSDN Git Service

added worker thread sleep throttling.
authorjohnallen <johnallen@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Mon, 8 Jan 2007 03:18:40 +0000 (03:18 +0000)
committerjohnallen <johnallen@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Mon, 8 Jan 2007 03:18:40 +0000 (03:18 +0000)
commita6f6cda02acf149a26da65330d3163e31f01a0f0
treeb0fbfe562fd5d8c371033d316fe455eb89c3eb45
parentc79c8ef55e283294853bbcc9d61b6c0c3058a88b
added worker thread sleep throttling.
each of the work object threads now self adjust their sleep interval based on the "fullness" of their fifo.
80% is the choose threshold.
Work objects with a fifo fullness of greater than 80% increase their sleep interval.
This allows other work object with less than 80% fullness more CPU usage.
Also adjusted thread_func, reader, and muxer sleep intervals to more reasonable values.

git-svn-id: svn://localhost/HandBrake/trunk@98 b64f7644-9d1e-0410-96f1-a4d463321fa5
libhb/common.h
libhb/fifo.c
libhb/hb.c
libhb/internal.h
libhb/muxcommon.c
libhb/reader.c
libhb/work.c
macosx/HandBrake.xcodeproj/project.pbxproj
test/test.c