mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-11-01 08:52:18 +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:
		
				
					committed by
					
						 Matthias Clasen
						Matthias Clasen
					
				
			
			
				
	
			
			
			
						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); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user