Commit Graph

15 Commits

Author SHA1 Message Date
Thilo Graf
dbc4a487e4 CComponentsTimer: use sleep() instead mySleep()
Had some problems with mySleep() related to select() which was used
inside mySleep()
2017-04-13 23:36:34 +02:00
Stefan Seyfried
6fdd920e42 CComponentsTimer: allow to set a thread name 2017-02-12 22:51:01 +01:00
Thilo Graf
e9122fbc4b CComponentsTimer: try to fix possible uncanceled thread 2016-12-30 20:33:26 +01:00
Thilo Graf
3cd509aa2d CComponentsTimer: disconnecting slots before stop timer thread, show error
Disconnecting of slots before stop threads ensures disconnecting
also on thread errors and keeps timer slots clear.
2016-12-27 18:18:00 +01:00
Thilo Graf
d0dd14040f CComponentsTimer: add support for nano seconds
To enable nano mode, parameter is_nano must set to true.
2016-10-24 10:31:28 +02:00
Thilo Graf
4904279fd5 CComponentsTimer: rework timer class 2016-04-25 10:26:32 +02:00
Thilo Graf
f4eb9e45ec ComponentsTimer: ensure slot connect/disconnect dependency from slot state 2016-04-18 17:58:02 +02:00
Thilo Graf
0146511f38 components: rework classes
- outsourced some classes cc_item.cpp/h, cc_draw.cpp/h
- added extra methodes for simple use of some basic components extra.cpp/h
- rework clock handling: use timer class, reworked members for
  enable/disable clock with external timer events,
  tryed to fix some display issues related with infoclock and
  time osd clock in moviebrowser, channellist, menuus
- reworked hide/kill handling, removed parameter for hide(), try to use
  cached backgrounds for other constallations, paint cache, image cache (all beta)
- reworked shadow/frame handling, add shadow modes for left/right
  arrangement, TODO: repaint for existant instances required
- reworked color gradient assignment (beta)

... Note: I had a data crash in my local git tree
and i tryed to restore my historie, but most was lost. Therefore here
the commit is large
2015-12-27 14:42:27 +01:00
Thilo Graf
45623aa810 CComponentsTimer: move mySleep call into mutex block, seems was not ok so 2015-03-29 22:40:14 +02:00
Thilo Graf
012c699951 CComponentsTimer: move pthread members into startTimer() 2015-03-29 22:40:10 +02:00
Thilo Graf
8aa2b6a5ab CComponentsTimer: start timer only if interval > 0 2015-03-29 22:39:50 +02:00
Thilo Graf
eebfc455c6 CComponentsTimer: log output moved
Log message was shown on each call of startTimer.
2015-03-29 22:39:50 +02:00
Thilo Graf
28ef6e147e CComponentsTimer: add slot for auto timer start/stop
Connection with OnBeforeRestart ensures closing threads.
Under certain circumstances, eg. running thread, a restart could fail.
2015-03-29 22:39:49 +02:00
Thilo Graf
cfd1510a5c CComponentsTimer: add mutex handling, use neutrino log 2014-09-25 11:03:03 +04:00
Thilo Graf
4731521070 CComponents: add new header file cc_signals.h with some basic members 2014-09-25 10:58:22 +04:00