Skip to content

Instantly share code, notes, and snippets.

@kumpera
Created November 20, 2012 22:26
Show Gist options
  • Select an option

  • Save kumpera/4121683 to your computer and use it in GitHub Desktop.

Select an option

Save kumpera/4121683 to your computer and use it in GitHub Desktop.
sgen_gray_object_enqueue_fast (SgenGrayQueue *queue, char *object)
{
GrayQueueSection *first = queue->first;
if (G_UNLIKELY (!first || first->end == SGEN_GRAY_QUEUE_SECTION_SIZE))
sgen_gray_object_enqueue (queue, object);
else
first->objects [first->end++] = object;
PREFETCH (object);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment