Opened 7 months ago

Last modified 4 months ago

#5179 new change

Implement asynchronous executor with a controllable lifetime.

Reported by: sergz Assignee:
Priority: P2 Milestone:
Module: Libadblockplus Keywords:
Cc: fhd Blocked By:
Blocking: #3595, #5180, #5183 Platform: Unknown / Cross platform
Ready: no Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

Description

Background

We run some operations in an asynchronous manner in background threads and the current approach with detached threads causes very bad effects. In particular it is a source of numerous race conditions. Therefore we need an option to wait for all currently running operations.

What to change

Such executor is implemented in https://codereview.adblockplus.org/29367507/, however the change set contains too much changes, so one can fine the SSCCE at https://gist.github.com/abby-sergz/12a2c1d25fc93c17838c878a11d7fe89.

Change History (5)

comment:1 Changed 7 months ago by sergz

  • Blocking 5180 added

comment:2 Changed 7 months ago by sergz

  • Blocking 5182 added

comment:3 Changed 7 months ago by sergz

  • Blocking 5183 added

comment:4 Changed 7 months ago by sergz

  • Blocking 5182 removed

comment:5 Changed 4 months ago by sergz

  • Blocking 3595 added
Note: See TracTickets for help on using tickets.