polybar/include
Patrick Ziegler 444120e664
script: Fix concurrency issues (#2518)
Fixes #1978

* Move tail and non-tail handler to method

Defining them in the constructor is ugly.

* script: Iterate over defined actions instead of fixed list

* Separate running logic and lock m_output

* Include POLYBAR_FLAGS in linker flags

* Stop using m_prev in script_runner

* Join module threads in stop function

Joining in the destructor may lead to UB because the subclass is already
deconstructed but the threads may still require it to be around (e.g.
for calling any functions on the instance)

* Cleanup script module

* Update changelog

* Remove AfterReturn class

* Remove m_stopping from script module

* Fix polybar not reading the entire line from child process.

For every `readline` call we created a new fd_streambuf. This means once
`readline` returns, the streambuf is destructed and and pending data in
its temporary buffer discarded and we never actually read it.

* Remove unused includes
2021-10-03 01:27:11 +02:00
..
adapters script: Fix concurrency issues (#2518) 2021-10-03 01:27:11 +02:00
cairo Fixed issues with border corner radii 2021-03-29 20:17:48 +02:00
components script: Fix concurrency issues (#2518) 2021-10-03 01:27:11 +02:00
drawtypes feat(ramp): Allow specifying ramp weights (#2505) 2021-09-22 21:46:20 +02:00
events Integrate bar taskqueue into eventloop (#2510) 2021-09-27 17:35:45 +02:00
modules script: Fix concurrency issues (#2518) 2021-10-03 01:27:11 +02:00
tags Finish action_context tests 2021-02-12 20:01:22 +01:00
utils script: Fix concurrency issues (#2518) 2021-10-03 01:27:11 +02:00
x11 Remove unused spin_lock 2021-09-21 21:43:27 +02:00
CMakeLists.txt refactor(cmake): Allow targets to be enabled individually 2020-12-24 02:20:38 +01:00
common.hpp refactor(build): Remove version number namespace 2019-05-17 16:49:47 +02:00
debug.hpp refactor: Cleanup 2017-01-11 03:07:28 +01:00
errors.hpp Add missing <stdexcept> header 2019-12-25 01:00:29 +01:00
settings.hpp.cmake Integrate bar taskqueue into eventloop (#2510) 2021-09-27 17:35:45 +02:00