2009-01-15 19:56:05 +00:00
|
|
|
/*
|
|
|
|
* threads.c: basic thread synchronization primitives
|
|
|
|
*
|
2010-04-29 02:39:11 +00:00
|
|
|
* Copyright (C) 2009-2010 Red Hat, Inc.
|
2009-01-15 19:56:05 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#include "threads.h"
|
|
|
|
|
2010-04-29 02:39:11 +00:00
|
|
|
#ifdef HAVE_PTHREAD_MUTEXATTR_INIT
|
2010-03-09 18:22:22 +00:00
|
|
|
# include "threads-pthread.c"
|
2009-01-15 19:56:05 +00:00
|
|
|
#else
|
2010-03-09 18:22:22 +00:00
|
|
|
# ifdef WIN32
|
|
|
|
# include "threads-win32.c"
|
|
|
|
# else
|
|
|
|
# error "Either pthreads or Win32 threads are required"
|
|
|
|
# endif
|
2009-01-15 19:56:05 +00:00
|
|
|
#endif
|