We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 076a42c + 71f025e commit 88ab841Copy full SHA for 88ab841
godot-core/src/builtin/string/gstring.rs
@@ -72,6 +72,9 @@ pub struct GString {
72
_opaque: OpaqueString,
73
}
74
75
+// SAFETY: The Godot implementation of String uses an atomic copy on write pointer, making this thread-safe as we never write to it unless we own it.
76
+unsafe impl Send for GString {}
77
+
78
impl GString {
79
/// Construct a new empty `GString`.
80
pub fn new() -> Self {
0 commit comments