Skip to content

AlexanderYao/ThreadPool

Repository files navigation

ThreadPool

todo

  1. in debug mode, WaitHandle(in workThread) is set unexpected, why?

done

2016.04.07 add cancel item

2016.04.06 add wait timeout, implement WaitAll

2016.04.05 add result, add wait for result

2016.04.04 add queue strategy, including Never + DropOldest + DropNewest

2016.04.03 fix bug, item may be assigned to thread who has then stopped // push the undone item back when thread exit

2016.04.02 fix bug, push idle thread back into pool

2016.04.01 adjust thread dynamically, we don't have to use a seperate thread to manage the pool

  • Caller Thread: enqueue work item, add thread if necessary, find idle thread dealing with item
  • Worker Thread: stop when it wait timeout, and exit by itself

2016.03.20 single thread in pool

Releases

No releases published

Packages

No packages published

Languages