Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Threema/Threema/Core/ThreemaCalls/   (Social Medium ©)  Datei vom 26.9.2026 mit Größe 1 kB image not shown  

Quelle  CallIDService.swift   Sprache: JAVA

 

import Foundation

/// Holds all Call ID's and its corresponding CallKit UUID.
final class CallIDService {
    private var callKitUUIDs: [UInt32: UUID] = [:]
    private let callKitUUIDsQueue = DispatchQueue(label: "ch.threema.VoIPCallKitManager.callKitUUIDsQueue")

    func uuid(for callID: VoIPCallID) -> (callUUID: UUID, isNew: Bool) {
        callKitUUIDsQueue.sync {
            var isNew = false
            if !callKitUUIDs.keys.contains(callID.callID) {
                let callUUID = UUID()
                callKitUUIDs[callID.callID] = callUUID
                isNew = true

                DDLogNotice("VoIPCallService [cid=\(callID)] -> callUUID=\(callUUID)")
            }
            return (callKitUUIDs[callID.callID]!, isNew)
        }
    }

    func callID(for callUUID: UUID) -> VoIPCallID? {
        callKitUUIDsQueue.sync {
            callKitUUIDs.first { item in
                item.value == callUUID
            }
            .map { item in
                VoIPCallID(callID: item.key)
            }
        }
    }
}

Messung
CHZG
849410092

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover


Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.