acm-uiuc / twilight-old

Underglow for the Ceiling
4 stars 3 forks source link

Move plugin player to separate thread #22

Closed warut-vijit closed 7 years ago

warut-vijit commented 7 years ago

Use threading library to free up main thread for handling user requests. Prevents blocking due to while loop, and will allow plugin parameters to be edited at runtime.

wchill commented 7 years ago

You need to use multiprocessing for this because CPython has the GIL. CPU-bound workloads will block all threads.

Unfortunately multiprocessing is incompatible with Twisted. So #15 should be figured out first.

warut-vijit commented 7 years ago

Will publish changes for this along with for #15