Lines Matching defs:self
206 FramebufferNativeWindow* self = getSelf(window);
207 Mutex::Autolock _l(self->mutex);
208 framebuffer_device_t* fb = self->fbDev;
210 int index = self->mBufferHead++;
211 if (self->mBufferHead >= self->mNumBuffers)
212 self->mBufferHead = 0;
218 while (!self->mNumFreeBuffers) {
219 self->mCondition.wait(self->mutex);
222 self->mNumFreeBuffers--;
223 self->mCurrentBufferIndex = index;
225 *buffer = self->buffers[index].get();
234 FramebufferNativeWindow* self = getSelf(window);
235 Mutex::Autolock _l(self->mutex);
237 const int index = self->mCurrentBufferIndex;
242 while (self->front == buffer) {
243 self->mCondition.wait(self->mutex);
254 FramebufferNativeWindow* self = getSelf(window);
255 Mutex::Autolock _l(self->mutex);
256 framebuffer_device_t* fb = self->fbDev;
259 const int index = self->mCurrentBufferIndex;
267 self->front = static_cast<NativeBuffer*>(buffer);
268 self->mNumFreeBuffers++;
269 self->mCondition.broadcast();
276 const FramebufferNativeWindow* self = getSelf(window);
277 Mutex::Autolock _l(self->mutex);
278 framebuffer_device_t* fb = self->fbDev;