+}
+
+#ifdef SIMGRID_TEST
+#include "xbt.h"
+#include "xbt/ex.h"
+
+XBT_TEST_SUITE("tpool", "Thread pool");
+
+xbt_tpool_t tpool;
+
+void job(void *arg);
+
+void job (void *arg)
+{
+ xbt_test_log1("I'm job %lu", (unsigned long)arg);
+}
+
+XBT_TEST_UNIT("basic", test_tpool_basic, "Basic usage")
+{
+ xbt_test_add0("Create thread pool");
+
+ unsigned long i;
+ /* Create thread pool */
+ tpool = xbt_tpool_new(5, 10);
+
+ /* Queue some work */
+ for(i=0; i < 20; i++)
+ xbt_tpool_queue_job(tpool, job, (void*)i);
+
+ /* Destroy thread pool */
+ xbt_tpool_destroy(tpool);
+
+ xbt_test_assert0(0, "lala");
+}
+
+#endif /* SIMGRID_TEST */