OLD | NEW |
1 /* | 1 /* |
2 ********************************************************************** | 2 ********************************************************************** |
3 * Copyright (C) 1997-2013, International Business Machines | 3 * Copyright (C) 1997-2013, International Business Machines |
4 * Corporation and others. All Rights Reserved. | 4 * Corporation and others. All Rights Reserved. |
5 ********************************************************************** | 5 ********************************************************************** |
6 * | 6 * |
7 * File UMUTEX.H | 7 * File UMUTEX.H |
8 * | 8 * |
9 * Modification History: | 9 * Modification History: |
10 * | 10 * |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 # define NOSERVICE | 313 # define NOSERVICE |
314 # define NOIME | 314 # define NOIME |
315 # define NOMCX | 315 # define NOMCX |
316 # ifndef NOMINMAX | 316 # ifndef NOMINMAX |
317 # define NOMINMAX | 317 # define NOMINMAX |
318 # endif | 318 # endif |
319 # include <windows.h> | 319 # include <windows.h> |
320 | 320 |
321 | 321 |
322 typedef struct UMutex { | 322 typedef struct UMutex { |
323 UInitOnce fInitOnce; | 323 icu::UInitOnce fInitOnce; |
324 CRITICAL_SECTION fCS; | 324 CRITICAL_SECTION fCS; |
325 } UMutex; | 325 } UMutex; |
326 | 326 |
327 /* Initializer for a static UMUTEX. Deliberately contains no value for the | 327 /* Initializer for a static UMUTEX. Deliberately contains no value for the |
328 * CRITICAL_SECTION. | 328 * CRITICAL_SECTION. |
329 */ | 329 */ |
330 #define U_MUTEX_INITIALIZER {U_INITONCE_INITIALIZER} | 330 #define U_MUTEX_INITIALIZER {U_INITONCE_INITIALIZER} |
331 | 331 |
332 | 332 |
333 | 333 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 U_INTERNAL void U_EXPORT2 umtx_lock(UMutex* mutex); | 374 U_INTERNAL void U_EXPORT2 umtx_lock(UMutex* mutex); |
375 | 375 |
376 /* Unlock a mutex. | 376 /* Unlock a mutex. |
377 * @param mutex The given mutex to be unlocked. Pass NULL to specify | 377 * @param mutex The given mutex to be unlocked. Pass NULL to specify |
378 * the global ICU mutex. | 378 * the global ICU mutex. |
379 */ | 379 */ |
380 U_INTERNAL void U_EXPORT2 umtx_unlock (UMutex* mutex); | 380 U_INTERNAL void U_EXPORT2 umtx_unlock (UMutex* mutex); |
381 | 381 |
382 #endif /* UMUTEX_H */ | 382 #endif /* UMUTEX_H */ |
383 /*eof*/ | 383 /*eof*/ |
OLD | NEW |