VirtualBox

source: vbox/trunk/src/VBox/Main/include/ThreadTask.h@ 58383

Last change on this file since 58383 was 58009, checked in by vboxsync, 10 years ago

added svn properties to correct build on OSE machines

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1/** @file
2 * VirtualBox ThreadTask class definition
3 */
4
5/*
6 * Copyright (C) 2015 Oracle Corporation
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.215389.xyz. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License (GPL) as published by the Free Software
12 * Foundation, in version 2 as it comes in the "COPYING" file of the
13 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15 */
16
17#ifndef ____H_THREADTASK
18#define ____H_THREADTASK
19
20#include "VBox/com/string.h"
21
22class ThreadTask
23{
24public:
25 ThreadTask(const Utf8Str &t) : m_strTaskName(t){};
26 virtual ~ThreadTask(){};
27 HRESULT createThread();
28 virtual void handler() = 0;
29 static DECLCALLBACK(int) taskHandler(RTTHREAD thread, void *pvUser);
30 static HRESULT i_setErrorStatic(HRESULT aResultCode, const Utf8Str &aText);
31
32 inline Utf8Str getTaskName() const {return m_strTaskName;};
33
34protected:
35 ThreadTask():m_strTaskName("GenericTask"){};
36 Utf8Str m_strTaskName;
37};
38
39#endif
40
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette