@@ -172,12 +172,8 @@ static win32_srwlock_fn win32_srwlock_release_shared;
172172static win32_srwlock_fn win32_srwlock_acquire_exclusive ;
173173static win32_srwlock_fn win32_srwlock_release_exclusive ;
174174
175- int pthread_rwlock_init (
176- pthread_rwlock_t * GIT_RESTRICT lock ,
177- const pthread_rwlockattr_t * GIT_RESTRICT attr )
175+ int git_rwlock_init (git_rwlock * GIT_RESTRICT lock )
178176{
179- GIT_UNUSED (attr );
180-
181177 if (win32_srwlock_initialize )
182178 win32_srwlock_initialize (& lock -> native .srwl );
183179 else
@@ -186,7 +182,7 @@ int pthread_rwlock_init(
186182 return 0 ;
187183}
188184
189- int pthread_rwlock_rdlock ( pthread_rwlock_t * lock )
185+ int git_rwlock_rdlock ( git_rwlock * lock )
190186{
191187 if (win32_srwlock_acquire_shared )
192188 win32_srwlock_acquire_shared (& lock -> native .srwl );
@@ -196,7 +192,7 @@ int pthread_rwlock_rdlock(pthread_rwlock_t *lock)
196192 return 0 ;
197193}
198194
199- int pthread_rwlock_rdunlock ( pthread_rwlock_t * lock )
195+ int git_rwlock_rdunlock ( git_rwlock * lock )
200196{
201197 if (win32_srwlock_release_shared )
202198 win32_srwlock_release_shared (& lock -> native .srwl );
@@ -206,7 +202,7 @@ int pthread_rwlock_rdunlock(pthread_rwlock_t *lock)
206202 return 0 ;
207203}
208204
209- int pthread_rwlock_wrlock ( pthread_rwlock_t * lock )
205+ int git_rwlock_wrlock ( git_rwlock * lock )
210206{
211207 if (win32_srwlock_acquire_exclusive )
212208 win32_srwlock_acquire_exclusive (& lock -> native .srwl );
@@ -216,7 +212,7 @@ int pthread_rwlock_wrlock(pthread_rwlock_t *lock)
216212 return 0 ;
217213}
218214
219- int pthread_rwlock_wrunlock ( pthread_rwlock_t * lock )
215+ int git_rwlock_wrunlock ( git_rwlock * lock )
220216{
221217 if (win32_srwlock_release_exclusive )
222218 win32_srwlock_release_exclusive (& lock -> native .srwl );
@@ -226,7 +222,7 @@ int pthread_rwlock_wrunlock(pthread_rwlock_t *lock)
226222 return 0 ;
227223}
228224
229- int pthread_rwlock_destroy ( pthread_rwlock_t * lock )
225+ int git_rwlock_free ( git_rwlock * lock )
230226{
231227 if (!win32_srwlock_initialize )
232228 DeleteCriticalSection (& lock -> native .csec );
0 commit comments