Struct trench::TimedBench [] [src]

pub struct TimedBench<Global, Local> { /* fields omitted */ }

Methods

impl<Global, Local> TimedBench<Global, Local> where
    Global: 'static + Default + Send + Sync,
    Local: 'static + Default
[src]

[src]

[src]

Have each thread initialize their local state. This function is executed by all threads.

[src]

Have all threads run the closure on the global state. Useful for initializing the global state, eg. for prefilling of data structures.

[src]

Initailize the global state, but do it single threaded.

[src]

Finish all pending work on all spawned threads.

[src]

Trait Implementations

impl<Global, Local> Drop for TimedBench<Global, Local>
[src]

[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<Global, Local> Send for TimedBench<Global, Local> where
    Global: Send + Sync,
    Local: Send

impl<Global, Local> !Sync for TimedBench<Global, Local>