Docs.rs
ferrilog-core-0.1.0
ferrilog-core 0.1.0
Docs.rs crate page
MIT
Links
Repository
crates.io
Source
Owners
trunkszi
Dependencies
libc ^0.2
normal
ryu ^1
normal
Versions
79.92%
of the crate is documented
Platform
aarch64-apple-darwin
aarch64-unknown-linux-gnu
i686-pc-windows-msvc
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Module thread_buffer
ferrilog_
core
0.1.0
Module thread_
buffer
Module Items
Structs
Constants
Statics
Functions
In crate ferrilog_
core
ferrilog_core
Module
thread_
buffer
Copy item path
Source
Structs
§
Thread
Buffer
Per-thread buffer containing an SPSC queue and thread metadata. Allocated on the heap via
new_on_heap()
(1MB+, too large for the stack).
Thread
Buffer
Registry
Lock-free thread buffer registry.
Constants
§
MAX_
THREADS
Maximum number of concurrent writer threads supported. Log calls from threads exceeding this limit will panic. 1MB queue x 256 = 256MB memory ceiling, which is sufficient for most use cases.
Statics
§
THREAD_
BUFFER_
REGISTRY
Global lock-free registry.
Functions
§
alloc_
message
Allocates space for a message in the current thread’s SPSC queue.
get_
thread_
buffer
Returns the current thread’s
ThreadBuffer
pointer, allocating one first if needed.
set_
thread_
name
Sets the logging thread name for the current thread.