Changeset 101921 in vbox for trunk/src/libs/xpcom18a4
- Timestamp:
- Nov 7, 2023 9:57:12 AM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/xpcom/tests/TestAutoLock.cpp
r101895 r101921 50 50 #include <iprt/thread.h> 51 51 52 PRLock*gLock;52 RTSEMFASTMUTEX gLock; 53 53 int gCount; 54 54 … … 70 70 int main(int argc, char** argv) 71 71 { 72 gLock = PR_NewLock();73 gCount = 0;74 75 72 int vrc = RTR3InitExe(argc, &argv, 0); 76 73 if (RT_FAILURE(vrc)) 77 74 return RTMsgInitFailure(vrc); 75 76 vrc = RTSemFastMutexCreate(&gLock); 77 if (RT_FAILURE(vrc)) 78 return RTMsgInitFailure(vrc); 79 80 gCount = 0; 78 81 79 82 // This shouldn't compile … … 99 102 AssertRC(rcThread); 100 103 104 RTSemFastMutexDestroy(gLock); 105 101 106 return 0; 102 107 }
Note:
See TracChangeset
for help on using the changeset viewer.