Commit graph

20 commits

Author SHA1 Message Date
Micke Prag
25542e7f90 Remove old code 2014-01-08 14:09:15 +01:00
Micke Prag
f7336b34f9 Rewrite our callback dispatcher. Instead of dynamically create new
threads for each callback they are now precreated when they are
registered. Each callback will now be called using the same thread each
time.
2014-01-08 13:55:02 +01:00
Micke Prag
6666dc0294 Do not use namespace using-directives according to Google style guidelines "build/namespaces" 2012-06-19 12:30:51 +02:00
Micke Prag
dc357ddeca Remove extra blank lines according to Google style guidelines "whitespace/blank_line" 2012-06-19 12:30:51 +02:00
Micke Prag
e1608f94a8 { should almost always be at the end of the previous line, according to Google style guidelines "whitespace/braces" 2012-06-19 12:30:50 +02:00
Micke Prag
5b5be387cd Include the directory when naming .h files. According to Google style guideline "build/include". 2012-06-19 12:30:49 +02:00
Micke Prag
246b4273ce Add callback TDControllerEvent 2012-02-27 15:19:04 +01:00
Micke Prag
148fd52c76 Create one generic callback dispatcher that can handle all our
callbacks.

This minimize code duplication and allows us much easier to add and
maintain callbacks.
2012-02-24 16:47:30 +01:00
Stefan Persson
c049b97a64 Dispatching of events in own thread, to somewhat counter problems with long running events. 2012-02-23 15:48:39 +01:00
Micke Prag
868c8b322c The mutex must be locked and unlocked by the same thread. We easily get deadlocks in Windows otherwise 2012-02-03 15:52:15 +01:00
Stefan Persson
6cbdac52b9 Fixed TelldusCenter freeze when saving device changes in Linux/Mac 2012-02-02 12:35:08 +01:00
Stefan Persson
24586433d9 Windows service, 2.1.0a and new changes for possible new version. 2011-11-04 14:32:22 +01:00
Micke Prag
9535ecd0ae Merge branch t102, this closes #102 2011-10-06 14:12:55 +00:00
Micke Prag
054f8076e1 Changed parameter dataType in SensorEvent to be an int instead of string 2011-05-12 15:31:17 +00:00
Micke Prag
61b193ad2d Added class TDSensorEventDispatcher 2011-05-12 14:57:54 +00:00
Micke Prag
0345f70616 Added mutexes to the callbacks to allow unregistering and callbacks at the same time 2011-03-02 09:09:32 +00:00
Micke Prag
b81b656e83 Retrieve callbackstruct as pointer instead of copy 2011-03-01 18:17:30 +00:00
Micke Prag
0163ba4d44 Removed our templated CallbackDispatcher, is only caused problems. 2010-11-02 17:08:55 +00:00
Micke Prag
7f7d9445a7 Use CallbackDispatcher for DeviceChange- and RawDevice events also 2010-11-02 14:48:13 +00:00
Micke Prag
348de30928 Welcome new class CallbackDispatcher 2010-11-02 14:30:30 +00:00