Changeset 71287 in vbox for trunk/src/VBox/Main/src-all
- Timestamp:
- Mar 9, 2018 1:14:39 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-all/ThreadTask.cpp
r69500 r71287 4 4 5 5 /* 6 * Copyright (C) 2015-201 7Oracle Corporation6 * Copyright (C) 2015-2018 Oracle Corporation 7 7 * 8 8 * This file is part of VirtualBox Open Source Edition (OSE), as … … 20 20 #include "ThreadTask.h" 21 21 22 #define LOG_GROUP LOG_GROUP_MAIN_THREAD_TASK 23 #include "LoggingNew.h" 22 24 23 25 /** … … 74 76 HRESULT ThreadTask::createThreadInternal(RTTHREADTYPE enmType) 75 77 { 78 LogThisFunc(("Created \"%s\"\n", m_strTaskName.c_str())); 79 76 80 mAsync = true; 77 81 int vrc = RTThreadCreate(NULL, … … 81 85 enmType, 82 86 0, 83 this->getTaskName().c_str());87 m_strTaskName.c_str()); 84 88 if (RT_SUCCESS(vrc)) 85 89 return S_OK; … … 102 106 ThreadTask *pTask = static_cast<ThreadTask *>(pvUser); 103 107 108 LogFunc(("Started \"%s\"\n", pTask->m_strTaskName.c_str())); 109 104 110 /* 105 111 * handler shall catch and process all possible cases as errors and exceptions. … … 107 113 pTask->handler(); 108 114 115 LogFunc(("Ended \"%s\"\n", pTask->m_strTaskName.c_str())); 116 109 117 delete pTask; 110 118 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.