Skip to main content

Module pool

Module pool 

Source

Re-exportsยง

use std::mem::take; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use std::sync::Mutex; ๐Ÿ”’
use std::sync::atomic::AtomicUsize; ๐Ÿ”’
use std::sync::atomic::Ordering; ๐Ÿ”’
use std::thread; ๐Ÿ”’
use std::thread::JoinHandle; ๐Ÿ”’
use async_channel::QueueStrategy; ๐Ÿ”’
use async_channel::Receiver; ๐Ÿ”’
use async_channel::RecvError; ๐Ÿ”’
use async_channel::Sender; ๐Ÿ”’
use futures::TryFutureExt; ๐Ÿ”’
use futures::channel::oneshot; ๐Ÿ”’
use oneshot::Sender as ResultSender; ๐Ÿ”’
use rocksdb::Direction; ๐Ÿ”’
use tuwunel_core::Error; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::Server; ๐Ÿ”’
use tuwunel_core::debug; ๐Ÿ”’
use tuwunel_core::debug; ๐Ÿ”’
use tuwunel_core::err; ๐Ÿ”’
use tuwunel_core::error; ๐Ÿ”’
use tuwunel_core::error; ๐Ÿ”’
use tuwunel_core::implement; ๐Ÿ”’
use tuwunel_core::result::DebugInspect; ๐Ÿ”’
use tuwunel_core::smallvec::SmallVec; ๐Ÿ”’
use tuwunel_core::trace; ๐Ÿ”’
use tuwunel_core::utils::sys::compute::get_affinity; ๐Ÿ”’
use tuwunel_core::utils::sys::compute::set_affinity; ๐Ÿ”’
use self::configure::configure; ๐Ÿ”’
use crate::Handle; ๐Ÿ”’
use crate::Map; ๐Ÿ”’
use crate::keyval::KeyBuf; ๐Ÿ”’
use crate::stream; ๐Ÿ”’

Modulesยง

configure ๐Ÿ”’

Structsยง

Get ๐Ÿ”’
Carries a batched point query to a pool worker.
Pool ๐Ÿ”’
Runs blocking database reads away from asynchronous runtime workers.
Seek ๐Ÿ”’
Carries an initial iterator seek to a pool worker.

Enumsยง

Cmd ๐Ÿ”’
Represents work accepted by the database thread pool.

Constantsยง

BATCH_INLINE ๐Ÿ”’
QUEUE_LIMIT ๐Ÿ”’
WORKER_LIMIT ๐Ÿ”’
WORKER_NAME ๐Ÿ”’
WORKER_STACK_SIZE ๐Ÿ”’

Functionsยง

handle_batch ๐Ÿ”’
handle_get ๐Ÿ”’
handle_iter ๐Ÿ”’
into_recv_get ๐Ÿ”’
into_recv_seek ๐Ÿ”’
into_send_get ๐Ÿ”’
into_send_seek ๐Ÿ”’
worker_handle ๐Ÿ”’

Type Aliasesยง

BatchQuery ๐Ÿ”’
Stores the owned keys in a batched point query.
BatchResult ๐Ÿ”’
Stores the handles returned by a batched point query.
ResultHandle ๐Ÿ”’
Represents one point-query result handle.