Changeset 21916 for trunk/src/odincrt/critsect.cpp
- Timestamp:
- Dec 18, 2011, 10:28:22 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 bin 2 Makefile.inc 1 env.cmd 2 LocalConfig.kmk
-
-
Property svn:mergeinfo
set to
/branches/gcc-kmk merged eligible
- Property svn:ignore
-
trunk/src/odincrt/critsect.cpp
r10580 r21916 35 35 return NO_ERROR; 36 36 } 37 37 38 38 return ERROR_INVALID_PARAMETER; 39 39 } … … 101 101 */ 102 102 ULONG WIN32API DosInitializeCriticalSection(CRITICAL_SECTION_OS2 *crit, 103 P SZ pszSemName, BOOL fShared)103 PCSZ pszSemName, BOOL fShared) 104 104 { 105 105 APIRET rc; … … 125 125 * DosAccessCriticalSection 126 126 */ 127 ULONG WIN32API DosAccessCriticalSection(CRITICAL_SECTION_OS2 *crit, P SZ pszSemName)127 ULONG WIN32API DosAccessCriticalSection(CRITICAL_SECTION_OS2 *crit, PCSZ pszSemName) 128 128 { 129 129 APIRET rc = NO_ERROR; 130 131 // Increment creation counter to prevent the section to be destroyed while 130 131 // Increment creation counter to prevent the section to be destroyed while 132 132 // we are checking it. Assume that an unitialized section has the counter == 0 133 133 DosInterlockedIncrement(&crit->CreationCount); 134 134 135 135 if (DosValidateCriticalSection (crit) == NO_ERROR) 136 136 { 137 137 // the section already initialized, use it 138 138 HEV hevLock = NULLHANDLE; 139 139 140 140 if (pszSemName == NULL) 141 141 { … … 155 155 rc = DosInitializeCriticalSection (crit, pszSemName, TRUE); 156 156 } 157 157 158 158 return NO_ERROR; 159 159 }
Note:
See TracChangeset
for help on using the changeset viewer.