polybar-dwm/tests/unit_tests/utils
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
..
action_router.cpp module: Implement action router (#2336) 2021-01-04 10:25:52 +01:00
actions.cpp actions: Move parsing to utility file 2020-11-26 20:53:53 +01:00
color.cpp fix(color): Rename type() function to get_type 2021-03-01 00:05:44 +01:00
command.cpp script: Fix concurrency issues (#2518) 2021-10-03 01:27:11 +02:00
env.cpp Add tests for env_util 2021-09-21 21:43:27 +02:00
file.cpp add command unit tests 2020-05-08 23:24:29 +02:00
math.cpp fix: unbounded_percentage always rounded down 2021-03-03 22:48:17 +01:00
memory.cpp
process.cpp Add env parameter to exec_sh() 2021-09-28 22:16:07 +02:00
scope.cpp
string.cpp Display correct(binary) unit prefixes in memory module (#2211) 2020-11-27 23:30:09 +01:00