mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
2003-02-15 Ulrich Drepper <drepper@redhat.com> * pthread_setconcurrency.c (pthread_setconcurrency): Fail for negative arguments. * Makefile (tests): Add tst-basic5. * tst-basic5.c: New file. after thread is done. If then zero, call exit(0).
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
|
||||
|
||||
@ -17,6 +17,7 @@
|
||||
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA. */
|
||||
|
||||
#include <errno.h>
|
||||
#include "pthreadP.h"
|
||||
|
||||
|
||||
@ -28,6 +29,9 @@ int
|
||||
pthread_setconcurrency (level)
|
||||
int level;
|
||||
{
|
||||
if (level < 0)
|
||||
return EINVAL;
|
||||
|
||||
__concurrency_level = level;
|
||||
|
||||
/* XXX For ports which actually need to handle the concurrency level
|
||||
|
Reference in New Issue
Block a user