diff options
| author | Mike Makonnen <mtm@FreeBSD.org> | 2004-03-28 14:05:28 +0000 | 
|---|---|---|
| committer | Mike Makonnen <mtm@FreeBSD.org> | 2004-03-28 14:05:28 +0000 | 
| commit | 1c6f63018d08de4401f8f07c371487958ae4121c (patch) | |
| tree | c847bc30278d22c01ea70ac7fbb7c69dc9831151 /lib/libthr/thread/thr_create.c | |
| parent | 1a06a03cb8ff7d8bd8a2d64f83af42d81cf730b3 (diff) | |
Notes
Diffstat (limited to 'lib/libthr/thread/thr_create.c')
| -rw-r--r-- | lib/libthr/thread/thr_create.c | 15 | 
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/libthr/thread/thr_create.c b/lib/libthr/thread/thr_create.c index 32ca69741670..5f1887d4a506 100644 --- a/lib/libthr/thread/thr_create.c +++ b/lib/libthr/thread/thr_create.c @@ -62,9 +62,7 @@ int  _pthread_create(pthread_t * thread, const pthread_attr_t * attr,  	       void *(*start_routine) (void *), void *arg)  { -	int		f_gc = 0;  	int             ret = 0; -	pthread_t       gc_thread;  	pthread_t       new_thread;  	pthread_attr_t	pattr;  	int		flags; @@ -148,12 +146,6 @@ _pthread_create(pthread_t * thread, const pthread_attr_t * attr,  	THREAD_LIST_LOCK; -	/* -	 * Check if the garbage collector thread -	 * needs to be started. -	 */ -	f_gc = (TAILQ_FIRST(&_thread_list) == _thread_initial); -  	/* Add the thread to the linked list of all threads: */  	TAILQ_INSERT_HEAD(&_thread_list, new_thread, tle); @@ -180,13 +172,6 @@ _pthread_create(pthread_t * thread, const pthread_attr_t * attr,  	/* Return a pointer to the thread structure: */  	(*thread) = new_thread; -	/* -	 * Start a garbage collector thread -	 * if necessary. -	 */ -	if (f_gc && pthread_create(&gc_thread,NULL, _thread_gc,NULL) != 0) -		PANIC("Can't create gc thread"); -  	return (0);  }  | 
