Changeset 58182 in vbox
- Timestamp:
- Oct 12, 2015 1:23:07 PM (9 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxService
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp
r58052 r58182 634 634 } 635 635 636 RTSemEventMultiDestroy(g_AutoMountEvent);637 g_AutoMountEvent = NIL_RTSEMEVENTMULTI;638 639 636 VGSvcVerbose(3, "vbsvcAutoMountWorker: Finished with rc=%Rrc\n", rc); 640 637 return VINF_SUCCESS; … … 666 663 static DECLCALLBACK(void) vbsvcAutoMountStop(void) 667 664 { 668 /* 669 * We need this check because at the moment our auto-mount 670 * thread really is a one-timer which destroys the event itself 671 * after running. 672 */ 673 if (g_AutoMountEvent != NIL_RTSEMEVENTMULTI) 674 RTSemEventMultiSignal(g_AutoMountEvent); 665 RTSemEventMultiSignal(g_AutoMountEvent); 675 666 } 676 667 -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceBalloon.cpp
r58052 r58182 394 394 VGSvcVerbose(3, "vgsvcBalloonInit: VbglR3CtlFilterMask failed with %Rrc\n", rc); 395 395 396 RTSemEventMultiDestroy(g_MemBalloonEvent);397 g_MemBalloonEvent = NIL_RTSEMEVENTMULTI;398 399 396 VGSvcVerbose(3, "vgsvcBalloonInit: finished mem balloon change request thread\n"); 400 397 return VINF_SUCCESS; … … 408 405 { 409 406 RTSemEventMultiSignal(g_MemBalloonEvent); 407 } 408 409 410 /** 411 * @interface_method_impl{VBOXSERVICE,pfnTerm} 412 */ 413 static DECLCALLBACK(void) vgsvcBalloonTerm(void) 414 { 415 if (g_MemBalloonEvent != NIL_RTSEMEVENTMULTI) 416 { 417 RTSemEventMultiDestroy(g_MemBalloonEvent); 418 g_MemBalloonEvent = NIL_RTSEMEVENTMULTI; 419 } 410 420 } 411 421 … … 430 440 vgsvcBalloonWorker, 431 441 vgsvcBalloonStop, 432 VGSvcDefaultTerm442 vgsvcBalloonTerm 433 443 }; -
trunk/src/VBox/Additions/common/VBoxService/VBoxServicePageSharing.cpp
r58089 r58182 761 761 RTProcTerminate(hProcess); 762 762 763 RTSemEventMultiDestroy(g_PageSharingEvent);764 g_PageSharingEvent = NIL_RTSEMEVENTMULTI;765 766 763 VGSvcVerbose(3, "vgsvcPageSharingWorkerProcess: finished thread\n"); 767 764 return 0; … … 776 773 { 777 774 RTSemEventMultiSignal(g_PageSharingEvent); 775 } 776 777 778 /** 779 * @interface_method_impl{VBOXSERVICE,pfnTerm} 780 */ 781 static DECLCALLBACK(void) vgsvcPageSharingTerm(void) 782 { 783 if (g_PageSharingEvent != NIL_RTSEMEVENTMULTI) 784 { 785 RTSemEventMultiDestroy(g_PageSharingEvent); 786 g_PageSharingEvent = NIL_RTSEMEVENTMULTI; 787 } 778 788 } 779 789 … … 802 812 #endif 803 813 vgsvcPageSharingStop, 804 VGSvcDefaultTerm814 vgsvcPageSharingTerm 805 815 }; 806 816 -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceStats.cpp
r58034 r58182 685 685 VGSvcVerbose(3, "vgsvcVMStatsWorker: VbglR3CtlFilterMask failed with %d\n", rc); 686 686 687 RTSemEventMultiDestroy(g_VMStatEvent);688 g_VMStatEvent = NIL_RTSEMEVENTMULTI;689 690 687 VGSvcVerbose(3, "VBoxStatsThread: finished statistics change request thread\n"); 691 688 return 0; … … 699 696 { 700 697 RTSemEventMultiSignal(g_VMStatEvent); 698 } 699 700 701 /** 702 * @interface_method_impl{VBOXSERVICE,pfnTerm} 703 */ 704 static DECLCALLBACK(void) vgsvcVMStatsTerm(void) 705 { 706 if (g_VMStatEvent != NIL_RTSEMEVENTMULTI) 707 { 708 RTSemEventMultiDestroy(g_VMStatEvent); 709 g_VMStatEvent = NIL_RTSEMEVENTMULTI; 710 } 701 711 } 702 712 … … 721 731 vgsvcVMStatsWorker, 722 732 vgsvcVMStatsStop, 723 VGSvcDefaultTerm733 vgsvcVMStatsTerm 724 734 }; 725 735
Note:
See TracChangeset
for help on using the changeset viewer.