Changeset 60999 in vbox for trunk/src/VBox/Main/src-all
- Timestamp:
- May 17, 2016 11:44:03 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 107251
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-all/ThreadTask.cpp
r59454 r60999 4 4 5 5 /* 6 * Copyright (C) 2015 Oracle Corporation6 * Copyright (C) 2015-2016 Oracle Corporation 7 7 * 8 8 * This file is part of VirtualBox Open Source Edition (OSE), as … … 26 26 * pointer in all cases. 27 27 * Possible way of usage: 28 * 28 * 29 29 * int vrc = VINF_SUCCESS; 30 30 * HRESULT hr = S_OK; 31 * 31 * 32 32 * SomeTaskInheritedFromThreadTask* pTask = NULL; 33 33 * try … … 41 41 * //this function delete pTask in case of exceptions, so 42 42 * there is no need the call of delete operator 43 * 43 * 44 44 * hr = pTask->createThread(); 45 45 * } … … 64 64 if (RT_FAILURE(vrc)) 65 65 { 66 delete this; 66 delete this; 67 67 return E_FAIL; 68 68 } … … 77 77 /* static */ DECLCALLBACK(int) ThreadTask::taskHandler(RTTHREAD /* thread */, void *pvUser) 78 78 { 79 HRESULT rc = S_OK;80 79 if (pvUser == NULL) 81 80 return VERR_INVALID_POINTER; … … 90 89 delete pTask; 91 90 92 return 0;91 return VINF_SUCCESS; 93 92 } 94 95 /*static*/ HRESULT ThreadTask::setErrorStatic(HRESULT aResultCode,96 const Utf8Str &aText)97 {98 NOREF(aText);99 return aResultCode;100 }101
Note:
See TracChangeset
for help on using the changeset viewer.