VirtualBox

source: vbox/trunk/src/VBox/Runtime/r0drv/thread-r0drv.h@ 1

Last change on this file since 1 was 1, checked in by vboxsync, 55 years ago

import

  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1/* $Id: thread-r0drv.h 1 1970-01-01 00:00:00Z vboxsync $ */
2/** @file
3 * InnoTek Portable Runtime - Thread Management, Ring-0 Driver.
4 */
5
6/*
7 * Copyright (C) 2006 InnoTek Systemberatung GmbH
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License as published by the Free Software Foundation,
13 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
14 * distribution. VirtualBox OSE is distributed in the hope that it will
15 * be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * If you received this file as part of a commercial VirtualBox
18 * distribution, then only the terms of your commercial VirtualBox
19 * license agreement apply instead of the previous paragraph.
20 */
21
22#ifndef __r0drv_thread_r0drv_h_
23#define __r0drv_thread_r0drv_h_
24
25#include <iprt/thread.h>
26
27__BEGIN_DECLS
28
29/**
30 * Argument package for a ring-0 thread.
31 */
32typedef struct RTR0THREADARGS
33{
34 /** The thread function. */
35 PFNRTTHREAD pfnThread;
36 /** The thread function argument. */
37 void *pvUser;
38 /** The thread type. */
39 RTTHREADTYPE enmType;
40} RTR0THREADARGS, *PRTR0THREADARGS;
41
42
43
44int rtThreadMain(RTNATIVETHREAD Self, PRTR0THREADARGS pArgs);
45
46
47/**
48 * Do the actual thread creation.
49 *
50 * @returns IPRT status code.
51 * On failure, no thread has been created.
52 * @param pArgs The argument package.
53 * @param pNativeThread Where to return the native thread handle.
54 */
55int rtThreadNativeCreate(PRTR0THREADARGS pArgs, PRTNATIVETHREAD pNativeThread);
56
57/**
58 * Do the actual thread priority change.
59 *
60 * @returns IPRT status code.
61 * @param Thread The thread which priority should be changed.
62 * This is currently restricted to the current thread.
63 * @param enmType The new thread priority type (valid).
64 */
65int rtThreadNativeSetPriority(RTTHREAD Thread, RTTHREADTYPE enmType);
66
67
68__END_DECLS
69
70#endif
71
Note: See TracBrowser for help on using the repository browser.

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