Expand description
This crate provides some useful utilities.
- The
hints moduleprovides hints to the compiler that affects how code should be emitted or optimized. - The
backoff moduleprovides theBackoffstructure. - The
cache_padded moduleprovides cache-padded atomics types and thegenerate_cache_padded_typemacro. - The
light_arc moduleprovides theLightArctype. - The
OrengineInstantthat is a monotone clock that weights 8 bytes on Unix-like systems. - The
ArrayQueuethat is an array-based queue implementation. - The
VecQueuethat is a vector-based queue implementation. - Configuration macros that are used to right compile the program based on the target platform
such as
config_target_pointer_width_64,config_target_pointer_width_32, andconfig_target_pointer_width_16.
Modules§
- backoff
- This module provides a
Backoffthat can be used to busy-wait with preemptive yield when it is necessary. - cache_
padded - Provides cache-padded atomic types.
- hints
- Hints to the compiler that affects how code should be emitted or optimized.
- light_
arc - This module provides
LightArc.
Macros§
- config_
target_ pointer_ width_ 16 - Generates code only compiled when the target pointer width is 16 bits.
- config_
target_ pointer_ width_ 32 - Generates code only compiled when the target pointer width is 32 bits.
- config_
target_ pointer_ width_ 64 - Generates code only compiled when the target pointer width is 64 bits.
- generate_
cache_ padded_ type - Generates a cache padded type. It accepts a name of the new type, the inner type and the default function.
Structs§
- Array
Buffer ArrayBufferis a fixed-sized array-based buffer.- Array
Queue ArrayQueueis a queue, but it uses an array on a stack and can’t be resized.- Orengine
Instant - A monotone clock. It can be converted to/from
std::time::Instant. - VecQueue
- A queue that uses a vector to store the elements.
Functions§
- clear_
with - This function is like
drainfor the wholeVec, but faster.