try queue setup
This commit is contained in:
parent
13c59ca575
commit
f603b642a2
|
@ -12,13 +12,13 @@ import ../../../utils/asyncthreads
|
||||||
import ./circomcompat
|
import ./circomcompat
|
||||||
|
|
||||||
type AsyncCircomCompat* = object
|
type AsyncCircomCompat* = object
|
||||||
params*: CircomCompatParams
|
circom*: CircomCompat
|
||||||
tp*: Taskpool
|
tp*: Taskpool
|
||||||
|
|
||||||
var circomBackend {.threadvar.}: Option[CircomCompat]
|
var circomBackend {.threadvar.}: Option[CircomCompat]
|
||||||
|
|
||||||
proc proveTask[H](
|
proc proveTask[H](
|
||||||
params: CircomCompatParams,
|
params: CircomCompat,
|
||||||
data: ProofInputs[H],
|
data: ProofInputs[H],
|
||||||
results: SignalQueuePtr[Result[CircomProof, string]],
|
results: SignalQueuePtr[Result[CircomProof, string]],
|
||||||
) =
|
) =
|
||||||
|
@ -43,7 +43,7 @@ proc prove*[H](
|
||||||
return failure(err)
|
return failure(err)
|
||||||
|
|
||||||
proc spawnTask() =
|
proc spawnTask() =
|
||||||
self.tp.spawn proveTask(self.params, input, queue)
|
self.tp.spawn proveTask(self.circom, input, queue)
|
||||||
|
|
||||||
spawnTask()
|
spawnTask()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue