Skip to content

Commit dbbdd75

Browse files
committed
Rename rustpython_common::{cell -> lock}
1 parent e0c626f commit dbbdd75

31 files changed

+29
-29
lines changed

common/src/borrow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::cell::{
1+
use crate::lock::{
22
MapImmutable, PyImmutableMappedMutexGuard, PyMappedMutexGuard, PyMappedRwLockReadGuard,
33
PyMappedRwLockWriteGuard, PyMutexGuard, PyRwLockReadGuard, PyRwLockWriteGuard,
44
};

common/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//! A crate to hold types and functions common to all rustpython components.
22
33
pub mod borrow;
4-
pub mod cell;
54
pub mod float_ops;
65
pub mod hash;
6+
pub mod lock;
77
pub mod rc;
88
pub mod str;
File renamed without changes.

vm/src/byteslike.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::common::borrow::{BorrowedValue, BorrowedValueMut};
2-
use crate::common::cell::{PyRwLockReadGuard, PyRwLockWriteGuard};
2+
use crate::common::lock::{PyRwLockReadGuard, PyRwLockWriteGuard};
33
use crate::obj::objbytearray::{PyByteArray, PyByteArrayRef};
44
use crate::obj::objbytes::{PyBytes, PyBytesRef};
55
use crate::pyobject::PyObjectRef;

vm/src/dictdatatype.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/// Inspired by: https://morepypy.blogspot.com/2015/01/faster-more-memory-efficient-and-more.html
33
/// And: https://www.youtube.com/watch?v=p33CVV29OG8
44
/// And: http://code.activestate.com/recipes/578375/
5-
use crate::common::cell::{PyRwLock, PyRwLockReadGuard, PyRwLockWriteGuard};
5+
use crate::common::lock::{PyRwLock, PyRwLockReadGuard, PyRwLockWriteGuard};
66
use crate::obj::objstr::{PyStr, PyStrRef};
77
use crate::pyobject::{BorrowValue, IdProtocol, IntoPyObject, PyObjectRef, PyResult};
88
use crate::vm::VirtualMachine;

vm/src/exceptions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::common::cell::PyRwLock;
1+
use crate::common::lock::PyRwLock;
22
use crate::function::PyFuncArgs;
33
use crate::obj::objsingletons::{PyNone, PyNoneRef};
44
use crate::obj::objstr::{PyStr, PyStrRef};

vm/src/frame.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use itertools::Itertools;
66

77
use crate::builtins::builtin_isinstance;
88
use crate::bytecode;
9-
use crate::common::cell::PyMutex;
9+
use crate::common::lock::PyMutex;
1010
use crate::exceptions::{self, ExceptionCtor, PyBaseExceptionRef};
1111
use crate::function::PyFuncArgs;
1212
use crate::obj::objasyncgenerator::PyAsyncGenWrappedValue;

vm/src/obj/objbytearray.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use crate::bytesinner::{
1414
ByteInnerSplitOptions, ByteInnerTranslateOptions, DecodeArgs, PyBytesInner,
1515
};
1616
use crate::byteslike::PyBytesLike;
17-
use crate::common::cell::{PyRwLock, PyRwLockReadGuard, PyRwLockWriteGuard};
17+
use crate::common::lock::{PyRwLock, PyRwLockReadGuard, PyRwLockWriteGuard};
1818
use crate::function::{OptionalArg, OptionalOption};
1919
use crate::obj::objbytes::PyBytes;
2020
use crate::obj::objtuple::PyTupleRef;

vm/src/obj/objcoroinner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::frame::{ExecutionResult, FrameRef};
44
use crate::pyobject::{PyObjectRef, PyResult};
55
use crate::vm::VirtualMachine;
66

7-
use crate::common::cell::PyRwLock;
7+
use crate::common::lock::PyRwLock;
88
use crossbeam_utils::atomic::AtomicCell;
99

1010
#[derive(Debug, PartialEq, Clone, Copy)]

0 commit comments

Comments
 (0)