|
|
@ -310,15 +310,15 @@ private: |
|
|
|
class TBBApproximateSynchronizer: public ApproximateSynchronizerBase |
|
|
|
class TBBApproximateSynchronizer: public ApproximateSynchronizerBase |
|
|
|
{ |
|
|
|
{ |
|
|
|
public: |
|
|
|
public: |
|
|
|
TBBApproximateSynchronizer( ApproximateSyncGrabber& approxSyncGrabber ) : |
|
|
|
TBBApproximateSynchronizer( ApproximateSyncGrabber& _approxSyncGrabber ) : |
|
|
|
ApproximateSynchronizerBase(approxSyncGrabber) |
|
|
|
ApproximateSynchronizerBase(_approxSyncGrabber) |
|
|
|
{ |
|
|
|
{ |
|
|
|
setMaxBufferSize(); |
|
|
|
setMaxBufferSize(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void setMaxBufferSize() |
|
|
|
void setMaxBufferSize() |
|
|
|
{ |
|
|
|
{ |
|
|
|
int maxBufferSize = ApproximateSynchronizerBase::approxSyncGrabber.getMaxBufferSize(); |
|
|
|
int maxBufferSize = approxSyncGrabber.getMaxBufferSize(); |
|
|
|
if( maxBufferSize >= 0 ) |
|
|
|
if( maxBufferSize >= 0 ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
depthQueue.set_capacity( maxBufferSize ); |
|
|
|
depthQueue.set_capacity( maxBufferSize ); |
|
|
|