Re: thread-safety of counters
Adrian Szyndela <[email protected]>
| Newsgroups | gmane.comp.freedesktop.dbus |
|---|---|
| Message-ID | <[email protected]> |
W dniu 24.02.2015 o 18:41, Thiago Macieira pisze: > DBusCounter is not meant to be atomic. All accesses should be protected by > mutex. Ok, let's do this. I just need a few answers, and I'll prepare a patch: an existing mutex or a new one? If an existing, then which one? If a new one, then to what objects should it be added? Counters? Messages? And, as I really want to understand it better, could you give some rationale for "mutex vs. atomic"? _______________________________________________ dbus mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dbus