Commit 4ddff71
committed
Fix: Make StreamStack thread-local to prevent cross-thread interference
Fixes #274
The StreamStack singleton was being shared globally across all threads,
causing thread interference where one thread could see another thread'\''s
active stream. This resulted in crashes when using cvcuda.Stream in
multi-threaded applications.
Solution: Changed the static singleton to thread_local static, ensuring
each thread has its own StreamStack instance.1 parent d45fa0a commit 4ddff71
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments