Exemple #1
0
/*
 * worker --
 *	Worker thread start function.
 */
static void *
worker(void *arg)
{
	pthread_t tid;

	WT_UNUSED(arg);
	tid = pthread_self();
	printf("worker thread starting: tid: %p\n", (void *)tid);
	(void)real_worker();
	return (NULL);
}
Exemple #2
0
/*
 * worker --
 *	Worker thread start function.
 */
static WT_THREAD_RET
worker(void *arg)
{
	char tid[128];

	WT_UNUSED(arg);

	testutil_check(__wt_thread_str(tid, sizeof(tid)));
	printf("worker thread starting: tid: %s\n", tid);

	(void)real_worker();
	return (WT_THREAD_RET_VALUE);
}