NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Functions
threads.h File Reference
#include <nvbio/basic/types.h>
#include <nvbio/basic/numbers.h>
#include <nvbio/basic/atomics.h>
#include <nvbio/basic/shared_pointer.h>
#include <queue>

Go to the source code of this file.

Classes

class  nvbio::ThreadBase
 
class  nvbio::Thread< DerivedThreadType >
 
class  nvbio::Mutex
 
class  nvbio::ScopedLock
 
class  nvbio::WorkQueue< WorkItemT, ProgressCallbackT >
 Work queue class. More...
 

Namespaces

 nvbio
 Define a vector_view POD type and plain_view() for std::vector.
 

Functions

uint32 nvbio::num_physical_cores ()
 
uint32 nvbio::num_logical_cores ()
 
uint32 nvbio::balance_batch_size (uint32 batch_size, uint32 total_count, uint32 thread_count)
 return a number close to batch_size that achieves best threading balance More...
 
void nvbio::yield ()