1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-10-02 15:09:07 +00:00
Commit Graph

8 Commits

Author SHA1 Message Date
Nikolas Garofil
36189de425 Fix warning about unused result of write() in priv::callback_base::stop()
On systems with a strict compiler, the buildprocess will complain:
  [ 70%] Building CXX object src/CMakeFiles/conky.dir/update-cb.cc.o
  conky/src/update-cb.cc: In member function ‘void conky::priv::callback_base::stop()’:
  conky/src/update-cb.cc:49:34: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result

This patch fixes this warning (and by doing this also checks if the write worked)
2013-06-20 19:43:46 +02:00
Jim Duchek
bf7248ecd6 Fixed GCC 4.7.0 issues, double buffering
Signed-off-by: Brenden Matthews <brenden@diddyinc.com>
2012-05-03 14:06:50 -07:00
Pavel Labath
b2331969d5 Fix a crash on exit when using curl
The problem was that the callback thread is destroyed only in the destructor of the callback_base
class (which is called after the destructor of the derived classes). This means that the thread
is running even when it's object is partly destroyed, which can cause segfaults, race conditions
and other nasty problems.

I've fixed it so that the thread is destroyed before the underlying object's destructor is
called.
2011-09-28 18:31:05 +02:00
Pavel Labath
b1eab2be0e gcc-4.5 compatibility fixes 2011-03-27 14:45:38 +02:00
Pavel Labath
06304030a2 update system: clear multiple posts in case of slow updates 2011-03-25 12:33:13 +01:00
Pavel Labath
0eaf5edbb8 Outsource merging of two callbacks into a separate function 2011-03-15 15:13:13 +01:00
Pavel Labath
3c7f2192b2 update callback objects can now signal termination with a write to a pipe as well 2011-02-27 22:43:40 +01:00
Pavel Labath
c5fe259ae0 a new update callback system
it should replace both timed_thread and run_update_callback() systems
it features:
- automatic removal of callbacks which are not used
- ability to run callback less frequent than the update_interval
- avoidance of running the same callback multiple times
2010-12-24 15:09:40 +01:00