NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions
Threads

Detailed Description

This module implements basic host thread and work-queue objects.

Classes

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

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 ()
 

Function Documentation

uint32 nvbio::balance_batch_size ( uint32  batch_size,
uint32  total_count,
uint32  thread_count 
)
inline

return a number close to batch_size that achieves best threading balance

Definition at line 235 of file threads.h.

uint32 nvbio::num_logical_cores ( )

Definition at line 118 of file threads.cpp.

uint32 nvbio::num_physical_cores ( )

Definition at line 53 of file threads.cpp.

void nvbio::yield ( )

Definition at line 310 of file threads.cpp.