Amanieu / parking_lot

Compact and efficient synchronization primitives for Rust. Also provides an API for creating custom synchronization primitives.
Apache License 2.0
2.77k stars 217 forks source link

Doesn't require what glue? #384

Closed dpc closed 1 year ago

dpc commented 1 year ago

Does not require any drop glue when dropped.

What glue? What does it mean? Thank you.

bjorn3 commented 1 year ago

Drop glue is what rustc internally calls the function that runs the Drop impl for a value and all fields of this value recursively. It is exposed as core::mem::drop_in_place.