- Timestamp:
- Jul 14, 2021 9:38:43 AM (4 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioTestService.cpp
r90048 r90176 936 936 * @returns VBox status code. 937 937 */ 938 static DECLCALLBACK(int) ats ConnectThread(RTTHREAD hThread, void *pvUser)938 static DECLCALLBACK(int) atsMainThread(RTTHREAD hThread, void *pvUser) 939 939 { 940 940 RT_NOREF(hThread); … … 1090 1090 { 1091 1091 /* Spin off the connection thread. */ 1092 rc = RTThreadCreate(&pThis->hThreadMain, ats ConnectThread, pThis, 0, RTTHREADTYPE_DEFAULT, RTTHREADFLAGS_WAITABLE,1092 rc = RTThreadCreate(&pThis->hThreadMain, atsMainThread, pThis, 0, RTTHREADTYPE_DEFAULT, RTTHREADFLAGS_WAITABLE, 1093 1093 "AUDTSTSRVM"); 1094 1094 if (RT_SUCCESS(rc)) … … 1173 1173 RTPollSetDestroy(pThis->hPollSet); 1174 1174 pThis->hPollSet = NIL_RTPOLLSET; 1175 1176 pThis->pTransport = NULL;1177 1175 1178 1176 PATSSERVERINST pIt, pItNext; -
trunk/src/VBox/Devices/Audio/AudioTestServiceTcp.cpp
r90048 r90176 688 688 atsTcpConnectWaitOnThreads(pThis, 15000); 689 689 690 LogFunc(("Done\n")); 691 } 692 693 /** 694 * @interface_method_impl{ATSTRANSPORT,pfnCreate} 695 */ 696 static DECLCALLBACK(int) atsTcpCreate(PATSTRANSPORTINST *ppThis) 697 { 698 PATSTRANSPORTINST pThis = (PATSTRANSPORTINST)RTMemAllocZ(sizeof(ATSTRANSPORTINST)); 699 AssertPtrReturn(pThis, VERR_NO_MEMORY); 700 701 *ppThis = pThis; 702 return VINF_SUCCESS; 703 } 704 705 /** 706 * @interface_method_impl{ATSTRANSPORT,pfnDestroy} 707 */ 708 static DECLCALLBACK(int) atsTcpDestroy(PATSTRANSPORTINST pThis) 709 { 690 710 /* Finally, clean up the critical section. */ 691 711 if (RTCritSectIsInitialized(&pThis->CritSect)) 692 712 RTCritSectDelete(&pThis->CritSect); 693 713 694 LogFunc(("Done\n"));695 }696 697 /**698 * @interface_method_impl{ATSTRANSPORT,pfnCreate}699 */700 static DECLCALLBACK(int) atsTcpCreate(PATSTRANSPORTINST *ppThis)701 {702 PATSTRANSPORTINST pThis = (PATSTRANSPORTINST)RTMemAllocZ(sizeof(ATSTRANSPORTINST));703 AssertPtrReturn(pThis, VERR_NO_MEMORY);704 705 *ppThis = pThis;706 return VINF_SUCCESS;707 }708 709 /**710 * @interface_method_impl{ATSTRANSPORT,pfnDestroy}711 */712 static DECLCALLBACK(int) atsTcpDestroy(PATSTRANSPORTINST pThis)713 {714 /** @todo Anything else to do here? */715 714 RTMemFree(pThis); 716 715
Note:
See TracChangeset
for help on using the changeset viewer.