mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Remove g_mutex_new()/g_cond_new() in testcases
These were the last users of the dynamic allocation API. Keep the uses in glib/tests/mutex.c since this is actually meant to test the API (which has to continue working, even if it is deprecated). https://bugzilla.gnome.org/show_bug.cgi?id=660739
This commit is contained in:
@@ -29,7 +29,6 @@ static guint number_of_repetitions = 10000; /* number of alloc+free repet
|
||||
static gboolean want_corruption = FALSE;
|
||||
|
||||
/* --- old memchunk prototypes (memchunks.c) --- */
|
||||
void old_mem_chunks_init (void);
|
||||
GMemChunk* old_mem_chunk_new (const gchar *name,
|
||||
gint atom_size,
|
||||
gulong area_size,
|
||||
@@ -285,7 +284,6 @@ main (int argc,
|
||||
threads[i] = g_thread_create (test_sliced_mem_thread, seedp, TRUE, NULL);
|
||||
else
|
||||
{
|
||||
old_mem_chunks_init();
|
||||
for (i = 0; i < n_threads; i++)
|
||||
threads[i] = g_thread_create (test_memchunk_thread, seedp, TRUE, NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user