 
     // MARK: objc mock
 
-    public func objc_sync_enter(lock: AnyObject) {
-    }
-
-    public func objc_sync_exit(lock: AnyObject) {
+    public func objc_sync_enter(_ lock: AnyObject) {
+    }
+
+    public func objc_sync_exit(_ lock: AnyObject) {
 
     }
 

        }
    }

    public func CFRunLoopWakeUp(runLoop: CFRunLoopRef) {
    }

    public func CFRunLoopStop(runLoop: CFRunLoopRef) {
        runLoopCounter -= 1
    }

    public func CFRunLoopPerformBlock(runLoop: CFRunLoopRef, _ mode: String, _ action: () -> ()) {
        queue.enqueue(action)
    }

    public func CFRunLoopRun() {


    public let DISPATCH_TIME_NOW = -1

    public func dispatch_time(_ when: dispatch_time_t, _ delta: Int64) -> dispatch_time_t {
        return when + Int(delta)
    }

    public func dispatch_queue_create(_ label: UnsafePointer<Int8>, _ attr: dispatch_queue_attr_t!) -> dispatch_queue_t! {
        return 0
    }

    public func dispatch_set_target_queue(_ object: dispatch_object_t!, _ queue: dispatch_queue_t!) {
    }

    public func dispatch_async(_ queue2: dispatch_queue_t, _ block: dispatch_block_t) {
        queue.enqueue(block)
    }

    public func dispatch_source_create(_ type: dispatch_source_type_t, _ handle: UInt, _ mask: UInt, _ queue: dispatch_queue_t!) -> dispatch_source_t! {
        return 0
    }

    public func dispatch_source_set_timer(_ source: dispatch_source_t, _ start: dispatch_time_t, _ interval: UInt64, _ leeway: UInt64) {

    }

    public func dispatch_source_set_event_handler(_ source: dispatch_source_t, _ handler: dispatch_block_t!) {
        queue.enqueue(handler)
    }

    public func dispatch_resume(_ object: dispatch_object_t) {
    }

    public func dispatch_source_cancel(_ source: dispatch_source_t) {
    }

    public func dispatch_get_global_queue(_ identifier: Int, _ flags: UInt) -> dispatch_queue_t! {
        return 0
    }

