* tests/test-tss.c (test_tss): Pass a different id to each thread.
+2019-06-20 Bruno Haible <bruno@clisp.org>
+
+ tss tests: Small improvement.
+ * tests/test-tss.c (test_tss): Pass a different id to each thread.
+
2019-06-20 Bruno Haible <bruno@clisp.org>
threads: New module.
/* Spawn the threads. */
for (i = 0; i < THREAD_COUNT; i++)
- ASSERT (thrd_create (&threads[i], worker_thread, NULL) == thrd_success);
+ ASSERT (thrd_create (&threads[i], worker_thread, (void *) (uintptr_t) i)
+ == thrd_success);
/* Wait for the threads to terminate. */
for (i = 0; i < THREAD_COUNT; i++)