                     }
                     lastCompleted = completed
                 }
-                else {
-//                    print("testAsyncBarrierFunction() @ \(#line) (\(i+1)/\(IterationsOfBarrierTest)): FAILED TO ACQUIRE LOCK IN TIME!")
-                }
-            }
-//            print("testAsyncBarrierFunction() @ \(#line) (\(i+1)/\(IterationsOfBarrierTest)): v semaphore.unlock()")
+            }
             semaphore.unlock()
-//            print("testAsyncBarrierFunction() @ \(#line) (\(i+1)/\(IterationsOfBarrierTest)): ^ semaphore.unlock()")
-
             XCTAssertTrue(completed == waitingFor)
 
             // reset vars for next run

            inBarrierStageCompleted = 0
            postBarrierStageCompleted = 0
        }

//        print("testAsyncBarrierFunction() @ \(#line): ^ leave main test loop")
//
//        print("testAsyncBarrierFunction() @ \(#line) -- leaving function")
    }

    func testMainThreadFunction()


    func testAsyncBarrierFunction()
    {
        var startAsyncWork = false
        var preBarrierStageCompleted = 0
        var inBarrierStageCompleted = 0
