Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-12-25 | Use pimpl for Avatars | Kitsune Ral | |
2017-11-21 | Eliminate race condition in Avatar::get() | Kitsune Ral | |
The race occurred because _ongoingRequest wasn't properly reinitialized if another request on a bigger size arrives while a request for a smaller size is in the air. The old request is now abandoned and continuations are collected inside the Avatar object rather than in the lambda connected to the job. Closes #124. Along the way, _scaledPixmaps is now std::vector instead of QHash since usually it only contains very few (1 or 2) entries and QHash is a waste of memory for that. | |||
2017-10-26 | Move out the avatar code from User | Kitsune Ral | |
Avatars are also a property of rooms, and the supporting code is basically the same. The only thing different will be emitted signals, and the cleanest thing to support that (aside from making Avatar a QObject) seems to be to parameterise the thumbnail-updating logic with a continuation invoked upon completion of the thumbnail job. |