Changeset 868c8b
- Timestamp:
- 02/03/12 15:52:15 (3 months ago)
- Branches:
- ('master', 'deebf2045e7119c339412580f37a1e653f7d5715')('controller-upgrade', '00f95d22e12d96ef089e0902ef62ae8ce841dc6f')
- Children:
- 12506815144a25f959a1c78776ad82fa8970b5a3
- Parents:
- ceec23dfed3ad0e67cef7e12bc29ef881880a79f
- git-author:
- Micke Prag <micke.prag@telldus.se>2012-02-03 15:52:15+01:00
- git-committer:
- Micke Prag <micke.prag@telldus.se>2012-02-03 15:52:15+01:00
- File:
-
- 1 edited
-
telldus-core/client/CallbackDispatcher.cpp (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
telldus-core/client/CallbackDispatcher.cpp
r6cbdac r868c8b 16 16 :Thread(), d(data), deviceId(id), method(m), strData(strD), doneRunning(false) 17 17 { 18 d->mutex.lock(); 19 this->start(); 18 this->startAndLock(&d->mutex); 20 19 } 21 20 … … 33 32 34 33 doneRunning = true; 35 d->mutex.unlock();36 34 } 37 35 … … 40 38 :Thread(), d(data), deviceId(id), changeEvent(event), changeType(type), doneRunning(false) 41 39 { 42 d->mutex.lock(); 43 this->start(); 40 this->startAndLock(&d->mutex); 44 41 } 45 42 … … 55 52 d->event(deviceId, changeEvent, changeType, d->id, d->context); 56 53 doneRunning = true; 57 d->mutex.unlock();58 54 } 59 55 … … 61 57 :Thread(), d(data), controllerId(id), strData(strD), doneRunning(false) 62 58 { 63 d->mutex.lock(); 64 this->start(); 59 this->startAndLock(&d->mutex); 65 60 } 66 61 … … 76 71 d->event(strData.c_str(), controllerId, d->id, d->context); 77 72 doneRunning = true; 78 d->mutex.unlock();79 73 } 80 74 … … 82 76 :Thread(), d(data), protocol(p), model(m), sensorId(id), dataType(type), value(v), timestamp(t), doneRunning(false) 83 77 { 84 d->mutex.lock(); 85 this->start(); 78 this->startAndLock(&d->mutex); 86 79 } 87 80 … … 97 90 d->event(protocol.c_str(), model.c_str(), sensorId, dataType, value.c_str(), timestamp, d->id, d->context); 98 91 doneRunning = true; 99 d->mutex.unlock();100 92 }
Note: See TracChangeset
for help on using the changeset viewer.
