equal
deleted
inserted
replaced
1 /* |
1 /* |
2 This file is part of CanFestival, a library implementing CanOpen Stack. |
2 This file is part of CanFestival, a library implementing CanOpen Stack. |
3 |
3 |
4 Copyright (C): Edouard TISSERANT and Francis DUPIN |
4 Copyright (C): Edouard TISSERANT and Francis DUPIN |
5 |
5 |
6 See COPYING file for copyrights details. |
6 See COPYING file for copyrights details. |
7 |
7 |
109 *Thread = kthread_run(ReceiveLoopPtr, port, "canReceiveLoop"); |
109 *Thread = kthread_run(ReceiveLoopPtr, port, "canReceiveLoop"); |
110 } |
110 } |
111 |
111 |
112 void WaitReceiveTaskEnd(TASK_HANDLE *Thread) |
112 void WaitReceiveTaskEnd(TASK_HANDLE *Thread) |
113 { |
113 { |
114 force_sig (SIGTERM, *Thread); |
114 /* join thread here because force_sig() does not work */ |
|
115 while((*Thread)->state <= 0) |
|
116 { |
|
117 ; /* >0 means stopped */ |
|
118 } |
115 } |
119 } |