#ifdef TET_POSIX_THREADS


/******	User editable routines for VSTH
	The Open Group Threads Test Suite
	@(#)vsth	1.8							******/

#include <pthread.h>

/******	Set the process concurrency level to the maximum allowed without
	requiring appropriate privilege.				******/

void
vsth_setconcurrency()
{

#if	( TEST_XPG > 4 )

/*
	int		level;
	static int	done;

	level = 8;

	if ( ! done )
	{
		done = 1;
		tet_printf("setting concurrency level to %d", level);
	}
	(void) pthread_setconcurrency( level );
*/

#else

#endif
}

/******	An atomic increment - not currently used but may be introduced in a
	future release.

	Increment *arg in an atomic manner and return *arg		******/

int
vsth_autoinc( int *arg )
{
	/* example only - must be atomic */
	return(++*arg);
}

#endif /* TET_POSIX_THREADS*/
