Changeset 5758 for pjproject/trunk/pjlib/src/pj/os_core_win32.c
- Timestamp:
- Mar 26, 2018 10:33:50 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/os_core_win32.c
r5539 r5758 751 751 { 752 752 PJ_CHECK_STACK(); 753 PJ_ASSERT_ON_FAIL(atomic_var, return); 753 754 754 755 InterlockedExchange(&atomic_var->value, value); … … 785 786 PJ_DEF(void) pj_atomic_inc(pj_atomic_t *atomic_var) 786 787 { 788 PJ_ASSERT_ON_FAIL(atomic_var, return); 787 789 pj_atomic_inc_and_get(atomic_var); 788 790 } … … 807 809 PJ_DEF(void) pj_atomic_dec(pj_atomic_t *atomic_var) 808 810 { 811 PJ_ASSERT_ON_FAIL(atomic_var, return); 809 812 pj_atomic_dec_and_get(atomic_var); 810 813 } … … 816 819 pj_atomic_value_t value ) 817 820 { 821 PJ_ASSERT_ON_FAIL(atomic_var, return); 818 822 #if defined(PJ_WIN32_WINNT) && PJ_WIN32_WINNT >= 0x0400 819 823 InterlockedExchangeAdd( &atomic_var->value, value );
Note: See TracChangeset
for help on using the changeset viewer.