support avr architecture based on ATMega32
1. IAR project, see TencentOS-tiny\board\ATMega32\IAR, both 4.12 and 7.20 is supplied.
This commit is contained in:
@@ -189,7 +189,7 @@ __API__ k_err_t tos_rwlock_wpend_timed(k_rwlock_t *rwlock, k_tick_t timeout)
|
||||
}
|
||||
|
||||
while (rwlock->n_readers > 0u || rwlock->is_writting) {
|
||||
/* util no one is writting or reading */
|
||||
/* until no one is writting or reading */
|
||||
err = tos_sem_pend(&rwlock->signal, timeout);
|
||||
if (err != K_ERR_NONE) {
|
||||
break;
|
||||
|
Reference in New Issue
Block a user