Mercurial > ecos-v3_0-branch
comparison host/tools/Utils/common/eCosThreadUtils.cpp @ 518:94f334d9be6e
* common/eCosThreadUtils.cpp:
Use "try" rather than "__try" for Cygwin builds.
| author | jld |
|---|---|
| date | Mon, 20 Jan 2003 16:01:26 +0000 |
| parents | 6736c52df507 |
| children | 74dbf4c3f2e1 |
comparison
equal
deleted
inserted
replaced
| 517:2b2d9aa25330 | 518:94f334d9be6e |
|---|---|
| 145 CeCosThreadUtils::THREADFUNC CALLBACK CeCosThreadUtils::SThreadFunc (void *pParam) | 145 CeCosThreadUtils::THREADFUNC CALLBACK CeCosThreadUtils::SThreadFunc (void *pParam) |
| 146 { | 146 { |
| 147 THREAD_ID id=GetThreadId(); | 147 THREAD_ID id=GetThreadId(); |
| 148 ThreadInfo *pInfo=(ThreadInfo*)pParam; | 148 ThreadInfo *pInfo=(ThreadInfo*)pParam; |
| 149 TRACE(_T("Thread %x [%s] created\n"),id,(LPCTSTR)pInfo->strName); | 149 TRACE(_T("Thread %x [%s] created\n"),id,(LPCTSTR)pInfo->strName); |
| 150 #ifdef _WIN32 | 150 #if defined(_WIN32) && !defined(__CYGWIN__) |
| 151 __try { | 151 __try { |
| 152 // Call what we are instructed to (e.g. LocalThreadFunc): | 152 // Call what we are instructed to (e.g. LocalThreadFunc): |
| 153 pInfo->pThreadFunc(pInfo->pThreadParam); | 153 pInfo->pThreadFunc(pInfo->pThreadParam); |
| 154 } | 154 } |
| 155 __except ( CeCosThreadUtils::FilterFunction(GetExceptionInformation() )) | 155 __except ( CeCosThreadUtils::FilterFunction(GetExceptionInformation() )) |
