Changeset 8363
- Timestamp:
- 10/09/08 14:13:02 (5 years ago)
- Location:
- ossiedev/branches/0.7.x/components/TxDemo
- Files:
-
- 2 modified
-
TxDemo.cpp (modified) (3 diffs)
-
TxDemo.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ossiedev/branches/0.7.x/components/TxDemo/TxDemo.cpp
r5497 r8363 73 73 { 74 74 DEBUG(3, TxDemo, "start() invoked") 75 thread_started=true; 75 76 } 76 77 … … 78 79 { 79 80 DEBUG(3, TxDemo, "stop() invoked") 81 thread_started=false; 80 82 } 81 83 … … 130 132 131 133 while(true) { 132 // push data to output 133 dataOutPort->pushPacket(I_out, Q_out); 134 135 // wait 136 usleep(packet_delay*1000); 134 if (thread_started) { 135 // push data to output 136 dataOutPort->pushPacket(I_out, Q_out); 137 138 // wait 139 usleep(packet_delay*1000); 140 } 137 141 } 138 142 } -
ossiedev/branches/0.7.x/components/TxDemo/TxDemo.h
r5494 r8363 85 85 /// Main signal processing method 86 86 void ProcessData(); 87 bool thread_started; 87 88 88 89 omni_condition *component_running; ///< for component shutdown