Add a usleep to CudaBuffer culling process. Would lead to a situation where the thread wouldn't care to yield to others."

pull/400/head
Anoop Saldanha 12 years ago committed by Victor Julien
parent 17c763f855
commit 70cb4d30eb

@ -155,7 +155,7 @@ void CudaBufferCullCompletedSlices(CudaBufferData *cb_data,
SCLogDebug("CudaBuffer waiting on an item to finish");
if (buffer_reset) {
while (!SC_ATOMIC_GET(slice_temp->done))
;
usleep(1);
} else {
break;
}

Loading…
Cancel
Save