mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-02 09:16:17 +01:00
Use a memchunk for sizeof(GQueue)-sized chunks. (#167984, Fabrício Barros
2005-02-20 Matthias Clasen <mclasen@redhat.com> * glib/gqueue.c (g_queue_new): Use a memchunk for sizeof(GQueue)-sized chunks. (#167984, Fabrício Barros Cabral)
This commit is contained in:
parent
92e7a4f3c9
commit
0e2279a092
@ -1,5 +1,8 @@
|
||||
2005-02-20 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gqueue.c (g_queue_new): Use a memchunk for
|
||||
sizeof(GQueue)-sized chunks. (#167984, Fabrício Barros Cabral)
|
||||
|
||||
* glib/gtimer.c (g_usleep): Fix usage of
|
||||
nanosleep(). (#163039, Bastien Nocera)
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
2005-02-20 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gqueue.c (g_queue_new): Use a memchunk for
|
||||
sizeof(GQueue)-sized chunks. (#167984, Fabrício Barros Cabral)
|
||||
|
||||
* glib/gtimer.c (g_usleep): Fix usage of
|
||||
nanosleep(). (#163039, Bastien Nocera)
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
2005-02-20 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gqueue.c (g_queue_new): Use a memchunk for
|
||||
sizeof(GQueue)-sized chunks. (#167984, Fabrício Barros Cabral)
|
||||
|
||||
* glib/gtimer.c (g_usleep): Fix usage of
|
||||
nanosleep(). (#163039, Bastien Nocera)
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
2005-02-20 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gqueue.c (g_queue_new): Use a memchunk for
|
||||
sizeof(GQueue)-sized chunks. (#167984, Fabrício Barros Cabral)
|
||||
|
||||
* glib/gtimer.c (g_usleep): Fix usage of
|
||||
nanosleep(). (#163039, Bastien Nocera)
|
||||
|
||||
|
@ -53,8 +53,8 @@ g_queue_new (void)
|
||||
{
|
||||
if (!queue_memchunk)
|
||||
queue_memchunk = g_mem_chunk_new ("GLib GQueue chunk",
|
||||
sizeof (GNode),
|
||||
sizeof (GNode) * 128,
|
||||
sizeof (GQueue),
|
||||
sizeof (GQueue) * 128,
|
||||
G_ALLOC_ONLY);
|
||||
queue = g_chunk_new (GQueue, queue_memchunk);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user