1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /* gnome-vfs-thread-pool.h - Simple thread pool implementation
4 Copyright (C) 2000 Eazel, Inc.
6 The Gnome Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public License as
8 published by the Free Software Foundation; either version 2 of the
9 License, or (at your option) any later version.
11 The Gnome Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
16 You should have received a copy of the GNU Library General Public
17 License along with the Gnome Library; see the file COPYING.LIB. If not,
18 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA.
21 Author: Pavel Cisler <pavel@eazel.com>
24 #ifndef GNOME_VFS_THREAD_POOL
25 #define GNOME_VFS_THREAD_POOL
29 int _gnome_vfs_thread_create (void *(* thread_routine) (void *),
30 void *thread_arguments);
32 void _gnome_vfs_thread_pool_init (void);
33 void _gnome_vfs_thread_pool_shutdown (void);
34 /* called during app shutdown, quit all the threads from the pool */