| 171 | } |
| 172 | |
| 173 | bool STaskLoop::getName(char * pszBuf, int nBufLen) |
| 174 | { |
| 175 | SAutoLock autoLock(m_taskListLock); |
| 176 | if (m_strName.length() >= (size_t)nBufLen) |
| 177 | return false; |
| 178 | strcpy_s(pszBuf, nBufLen, m_strName.c_str()); |
| 179 | return true; |
| 180 | } |
| 181 | |
| 182 | void STaskLoop::cancelTasksForObject(void *object) |
| 183 | { |