/** Returns an object which can be used to upload data to the buffer using
mapped memory. */
- AsyncUpdater *refresh_async() const;
+ AsyncUpdater *refresh_async() const { return dirty ? new AsyncUpdater(*this) : 0; }
private:
void unlink_from_buffer();