~raoul-snyman/openlp/bug-1742910

Viewing all changes in revision 2807.

  • Committer: Raoul Snyman
  • Date: 2018-01-07 19:27:26 UTC
  • mfrom: (2780.2.25 better-threading)
  • Revision ID: raoul@snyman.info-20180107192726-12xpdlysqzszxvjx
Major overhaul of how threading in OpenLP works. Rather than messing around with threads yourself, you create a worker object descended from ThreadWorker, implement start() (and stop() if it's a long-running thread), and run it using run_thread().

Changes related to thread API:

- WebSocket was refactored (mostly into the worker)
- HttpServer was refactored a bit
- CheckMediaWorker was refactored a bit
- Version check refactored
- SongSelect search refactored
- New _wait_for_threads() method...

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: