[email protected] said: > How would you suggest to synchronize access to the device_t array in a > cfdriver_t? I could use a mutex per cfdriver_t, just for example, but > maybe you have in mind a better way.
As Masao said, a per-cfdriver mutex is acceptable. But I think there is a more general problem: The driver reads a pointer which can become invalid immediately after the lock is released, no matter how the locking is done. Or am I missing something? best regards Matthias ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, Prof. Dr. Sebastian M. Schmidt ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------
