remove the _ready flag in ihipStreamCallback_t and the mutex that protects it.

Этот коммит содержится в:
Siu Chi Chan
2018-06-04 17:29:04 -04:00
родитель e21e6ed3a0
Коммит 0d719c514f
2 изменённых файлов: 0 добавлений и 7 удалений
-4
Просмотреть файл
@@ -1445,10 +1445,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());