| 74 | } |
| 75 | |
| 76 | void Thread::func(Thread *pThis) |
| 77 | { |
| 78 | if (pThis->_entry != RT_NULL) |
| 79 | { |
| 80 | pThis->_entry(pThis->_param); |
| 81 | } |
| 82 | else |
| 83 | { |
| 84 | pThis->run(pThis->_param); |
| 85 | } |
| 86 | |
| 87 | rt_event_send(&pThis->_event, 1); |
| 88 | } |
| 89 | |
| 90 | void Thread::run(void *parameter) |
| 91 | { |