Merge pull request #491 from scchan/fix_wait

callback handling: don't need to wait for the thread to become ready

[ROCm/hip commit: 7311b60220]
This commit is contained in:
Maneesh Gupta
2018-06-06 14:38:25 +05:30
committed by GitHub
3 changed files with 0 additions and 16 deletions
-4
View File
@@ -1452,10 +1452,6 @@ hipError_t ihipStreamSynchronize(hipStream_t stream) {
void ihipStreamCallbackHandler(ihipStreamCallback_t* cb) {
hipError_t e = hipSuccess;
// Notify hipStreamAddCallback that callback handler thread is active
std::lock_guard<std::mutex> guard(cb->_mtx);
cb->_ready = true;
// Synchronize stream
tprintf(DB_SYNC, "ihipStreamCallbackHandler wait on stream %s\n",
ToString(cb->_stream).c_str());