Changeset 106020 in vbox for trunk/include
- Timestamp:
- Sep 12, 2024 9:23:00 AM (3 months ago)
- Location:
- trunk/include/iprt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/critsect.h
r98103 r106020 134 134 135 135 /** 136 * Initialize a critical section with a simple name, 137 */ 138 RTDECL(int) RTCritSectInitNamed(PRTCRITSECT pCritSect, const char *pszName); 139 140 /** 136 141 * Initialize a critical section. 137 142 * … … 376 381 /* Strict lock order: Automatically classify locks by init location. */ 377 382 #if defined(RT_LOCK_STRICT_ORDER) && defined(IN_RING3) && !defined(RTCRITSECT_WITHOUT_REMAPPING) && !defined(RT_WITH_MANGLING) 383 # undef RTCritSectInit 378 384 # define RTCritSectInit(pCritSect) \ 379 385 RTCritSectInitEx((pCritSect), 0 /*fFlags*/, \ 380 386 RTLockValidatorClassForSrcPos(RT_SRC_POS, NULL), \ 381 387 RTLOCKVAL_SUB_CLASS_NONE, NULL) 388 389 # undef RTCritSectInitNamed 390 # define RTCritSectInitNamed(a_pCritSect, a_pszName) \ 391 RTCritSectInitEx((a_pCritSect), 0 /*fFlags*/, \ 392 RTLockValidatorClassForSrcPos(RT_SRC_POS, NULL), \ 393 RTLOCKVAL_SUB_CLASS_NONE, "%s", a_pszName) 382 394 #endif 383 395 … … 485 497 486 498 /** 487 * Initialize a critical section.499 * Initialize a read/write critical section. 488 500 */ 489 501 RTDECL(int) RTCritSectRwInit(PRTCRITSECTRW pThis); 490 502 491 503 /** 492 * Initialize a critical section. 504 * Initialize a read/write critical section with a simple name. 505 */ 506 RTDECL(int) RTCritSectRwInitNamed(PRTCRITSECTRW pThis, const char *pszName); 507 508 /** 509 * Initialize a read/write critical section. 493 510 * 494 511 * @returns IPRT status code. … … 758 775 RTCritSectRwInitEx((a_pThis), 0 /*fFlags*/, \ 759 776 RTLockValidatorClassForSrcPos(RT_SRC_POS, NULL), \ 760 RTLOCKVAL_SUB_CLASS_NONE, NULL) 777 RTLOCKVAL_SUB_CLASS_NONE, NULL) 778 779 # define RTCritSectRwInitNamed(a_pThis, a_pszName) \ 780 RTCritSectRwInitEx((a_pThis), 0 /*fFlags*/, \ 781 RTLockValidatorClassForSrcPos(RT_SRC_POS, NULL), \ 782 RTLOCKVAL_SUB_CLASS_NONE, "%s", a_pszName) 761 783 #endif 762 784 -
trunk/include/iprt/mangling.h
r105746 r106020 667 667 # define RTCritSectInit RT_MANGLER(RTCritSectInit) 668 668 # define RTCritSectInitEx RT_MANGLER(RTCritSectInitEx) 669 # define RTCritSectInitNamed RT_MANGLER(RTCritSectInitNamed) 669 670 # define RTCritSectLeave RT_MANGLER(RTCritSectLeave) 670 671 # define RTCritSectLeaveMultiple RT_MANGLER(RTCritSectLeaveMultiple) … … 682 683 # define RTCritSectRwInit RT_MANGLER(RTCritSectRwInit) 683 684 # define RTCritSectRwInitEx RT_MANGLER(RTCritSectRwInitEx) 685 # define RTCritSectRwInitNamed RT_MANGLER(RTCritSectRwInitNamed) 684 686 # define RTCritSectRwIsReadOwner RT_MANGLER(RTCritSectRwIsReadOwner) 685 687 # define RTCritSectRwIsWriteOwner RT_MANGLER(RTCritSectRwIsWriteOwner)
Note:
See TracChangeset
for help on using the changeset viewer.