Merge pull request #491 from scchan/fix_wait

callback handling: don't need to wait for the thread to become ready
Этот коммит содержится в:
Maneesh Gupta
2018-06-06 14:38:25 +05:30
коммит произвёл GitHub
родитель 391ff1c949 a1f3b587fb
Коммит 7311b60220
3 изменённых файлов: 0 добавлений и 16 удалений
-4
Просмотреть файл
@@ -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());