Merge pull request #491 from scchan/fix_wait

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

[ROCm/clr commit: f7c49dde38]
Tento commit je obsažen v:
Maneesh Gupta
2018-06-06 14:38:25 +05:30
odevzdal GitHub
3 změnil soubory, kde provedl 0 přidání a 16 odebrání
-4
Zobrazit soubor
@@ -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());