 //        }
 //        signal.unlock()
 //
-//        XCTAssert(counter == 0)
+//        XCTAssert(protect == 0)
 //        XCTAssert(remainingThreads == 0)
 //    }
 }

            signal.unlock()
        }

        XCTAssert(counter == 0)
        XCTAssert(remainingThreads == 0)
    }


        }
        signal.unlock()

        XCTAssert(protect == 0)
        XCTAssert(executions == NumberOfThreads * TestThreadIterations)
        XCTAssert(remainingThreads == 0)
    }

