Allow 4 decode threads at same time
This commit is contained in:
1 parent
f7bf1d624b
commit
300505e127
1 file changed
+1
-1
@@ -289,7 +289,7 @@ class SpiderQueenWorker(private val queen: SpiderQueen) : CoroutineScope {
|
||||
private val decoder = Decoder()
|
||||
|
||||
inner class Decoder {
|
||||
private val mSemaphore = Semaphore(2)
|
||||
private val mSemaphore = Semaphore(4)
|
||||
private val mDecodeJobMap = hashMapOf<Int, Job>()
|
||||
|
||||
fun cancel(index: Int) {
|
||||
|
||||
Reference in new issue
Block a user