@@ -25,13 +25,13 @@ trait EvalContextExtPriv<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
2525 this. unblock_thread ( thread) ;
2626
2727 match mode {
28- RwLockMode :: Shared =>
28+ RwLockMode :: Read =>
2929 if this. rwlock_is_write_locked ( lock) {
3030 this. rwlock_enqueue_and_block_reader ( lock, thread) ;
3131 } else {
3232 this. rwlock_reader_lock ( lock, thread) ;
3333 } ,
34- RwLockMode :: Exclusive =>
34+ RwLockMode :: Write =>
3535 if this. rwlock_is_locked ( lock) {
3636 this. rwlock_enqueue_and_block_writer ( lock, thread) ;
3737 } else {
@@ -386,18 +386,18 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
386386
387387 let shared_mode = 0x1 ; // CONDITION_VARIABLE_LOCKMODE_SHARED is not in std
388388 let mode = if flags == 0 {
389- RwLockMode :: Exclusive
389+ RwLockMode :: Write
390390 } else if flags == shared_mode {
391- RwLockMode :: Shared
391+ RwLockMode :: Read
392392 } else {
393393 throw_unsup_format ! ( "unsupported `Flags` {flags} in `SleepConditionVariableSRW`" ) ;
394394 } ;
395395
396396 let active_thread = this. get_active_thread ( ) ;
397397
398398 let was_locked = match mode {
399- RwLockMode :: Shared => this. rwlock_reader_unlock ( lock_id, active_thread) ,
400- RwLockMode :: Exclusive => this. rwlock_writer_unlock ( lock_id, active_thread) ,
399+ RwLockMode :: Read => this. rwlock_reader_unlock ( lock_id, active_thread) ,
400+ RwLockMode :: Write => this. rwlock_writer_unlock ( lock_id, active_thread) ,
401401 } ;
402402
403403 if !was_locked {
0 commit comments