Changeset 47206 in vbox
- Timestamp:
- Jul 17, 2013 10:17:13 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 87319
- Location:
- trunk
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/thread.h
r47199 r47206 4 4 5 5 /* 6 * Copyright (C) 2006-201 2Oracle Corporation6 * Copyright (C) 2006-2013 Oracle Corporation 7 7 * 8 8 * This file is part of VirtualBox Open Source Edition (OSE), as … … 616 616 * @returns IPRT status code. 617 617 * @param phThreadCtx Where to store the thread-context handle. 618 * 619 * @remarks Must be called with preemption enabled! 618 620 */ 619 621 RTDECL(int) RTThreadCtxHooksCreate(PRTTHREADCTX phThreadCtx); … … 626 628 * 627 629 * @param phThreadCtx Pointer to the thread-context handle. 630 * 631 * @remarks Must be called with preemption enabled! 628 632 */ 629 633 RTDECL(void) RTThreadCtxHooksDestroy(RTTHREADCTX hThreadCtx); … … 638 642 * for all thread-context events. 639 643 * @param pvUser User argument (optional, can be NULL). 644 * 645 * @remarks Can be called with preemption disabled. 640 646 */ 641 647 RTDECL(int) RTThreadCtxHooksRegister(RTTHREADCTX hThreadCtx, PFNRTTHREADCTXHOOK pfnThreadHook, void *pvUser); … … 646 652 * @returns IPRT status code. 647 653 * @param phThreadCtx Pointer to the thread-context handle. 654 * 655 * @remarks Can be called with preemption disabled. 648 656 */ 649 657 RTDECL(int) RTThreadCtxHooksDeregister(RTTHREADCTX hThreadCtx); -
trunk/src/VBox/Runtime/Makefile.kmk
r47199 r47206 1929 1929 r0drv/mpnotification-r0drv.c \ 1930 1930 r0drv/powernotification-r0drv.c \ 1931 r0drv/generic/threadctxhooks-r0drv-generic.cpp \1932 1931 r0drv/solaris/RTLogWriteDebugger-r0drv-solaris.c \ 1933 1932 r0drv/solaris/RTMpPokeCpu-r0drv-solaris.c \ … … 1948 1947 r0drv/solaris/thread-r0drv-solaris.c \ 1949 1948 r0drv/solaris/thread2-r0drv-solaris.c \ 1949 r0drv/solaris/threadctxhooks-r0drv-solaris.c \ 1950 1950 r0drv/solaris/time-r0drv-solaris.c \ 1951 1951 r0drv/solaris/timer-r0drv-solaris.c -
trunk/src/VBox/Runtime/r0drv/linux/threadctxhooks-r0drv-linux.c
r47199 r47206 45 45 *******************************************************************************/ 46 46 /** 47 * The internal thread-context event.47 * The internal thread-context object. 48 48 */ 49 49 typedef struct RTTHREADCTXINT … … 109 109 * Worker function for RTThreadCtxHooks(Deregister|Destroy)(). 110 110 * 111 * @param pThis Pointer to the internal thread-context struct.111 * @param pThis Pointer to the internal thread-context object. 112 112 */ 113 113 DECLINLINE(void) rtThreadCtxHooksDeregister(PRTTHREADCTXINT pThis) … … 150 150 AssertMsgReturnVoid(pThis->u32Magic == RTTHREADCTXINT_MAGIC, ("pThis->u32Magic=%RX32 pThis=%p\n", pThis->u32Magic, pThis)); 151 151 Assert(pThis->hOwner == RTThreadSelf()); 152 Assert(RTThreadPreemptIsEnabled(NIL_RTTHREAD)); 152 153 153 154 /* -
trunk/src/VBox/Runtime/r0drv/solaris/the-solaris-kernel.h
r44528 r47206 58 58 #include <sys/ctf_api.h> 59 59 #include <sys/modctl.h> 60 #include <sys/proc.h> 60 61 61 62 #undef u /* /usr/include/sys/user.h:249:1 is where this is defined to (curproc->p_user). very cool. */ -
trunk/src/VBox/Runtime/testcase/tstR0ThreadPreemption.cpp
r47199 r47206 5 5 6 6 /* 7 * Copyright (C) 2009-201 1Oracle Corporation7 * Copyright (C) 2009-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 372 372 373 373 RTThreadCtxHooksDeregister(hThreadCtx); 374 375 Assert(RTThreadPreemptIsEnabled(NIL_RTTHREAD)); 374 376 RTThreadCtxHooksDestroy(hThreadCtx); 377 375 378 RTMemFree(pCtxData); 376 379 break; -
trunk/src/VBox/Runtime/testcase/tstR0ThreadPreemption.h
r47199 r47206 5 5 6 6 /* 7 * Copyright (C) 2009-201 0Oracle Corporation7 * Copyright (C) 2009-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as -
trunk/src/VBox/Runtime/testcase/tstR0ThreadPreemptionDriver.cpp
r47199 r47206 5 5 6 6 /* 7 * Copyright (C) 2009-201 0Oracle Corporation7 * Copyright (C) 2009-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as
Note:
See TracChangeset
for help on using the changeset viewer.