     var needRestart = false
     var res: A
     var tr: Transactions
+	// var env:UnsafeMutablePointer<Int32> = UnsafeMutablePointer.alloc(sizeof(jmp_buf))
+	// var jmpres = setjmp(env)
     do {
         needRestart = false
         (res, tr) = stm.run(Transactions())


private func _retry(trans: Transactions) -> Transactions {
    trans.forceRetry = true
    return trans
}


    private var thereIsNoReads = true
    private var id:Int
    private var cond: UnsafeMutablePointer<pthread_cond_t>
    // private var env: UnsafeMutablePointer<Int32>
    
    init() {
        self.id = _IDGenerator.sharedInstance.requestID()
