<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Protocol: wl_buffer.release is racy"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=75303#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Protocol: wl_buffer.release is racy"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=75303">bug 75303</a>
              from <span class="vcard"><a class="email" href="mailto:ppaalanen@gmail.com" title="Pekka Paalanen <ppaalanen@gmail.com>"> <span class="fn">Pekka Paalanen</span></a>
</span></b>
        <pre>(In reply to Bill Spitzak from <a href="show_bug.cgi?id=75303#c4">comment #4</a>)
<span class="quote">> Could the buffer release include some kind of serial number indicating which
> attach was the last one done to the buffer?</span >

We cannot change the signature of the release event, and we cannot add another
event to wl_buffer because wl_buffer has several unrelated factories, which
makes extending wl_buffer interface in particular impossible. Using serials
would also require extending wl_surface.attach somehow carry a serial in the
first place.

Client side reference counting, that is, for every committed attach there will
be a release, seems like the preferred solution to me at the moment.

I've forgot the details related to the possibility of implementing
wl_proxy_get_version(), but from what I recall, it should be perfectly doable
since we already have runtime object version inheritance in libwayland-client
(don't we?).</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>