4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) version 3.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with the program; if not, see <http://www.gnu.org/licenses/>
18 * Copyright (C) 2011 Novell, Inc. (www.novell.com)
22 #if !defined (__LIBEDATASERVER_H_INSIDE__) && !defined (LIBEDATASERVER_COMPILATION)
23 #error "Only <libedataserver/libedataserver.h> should be included directly."
26 #ifndef E_OPERATION_POOL_H
27 #define E_OPERATION_POOL_H
34 * Contains only private data that should be read and manipulated using the
39 typedef struct _EOperationPool EOperationPool;
41 EOperationPool *e_operation_pool_new (guint max_threads, GFunc thread_func, gpointer user_data);
42 void e_operation_pool_free (EOperationPool *pool);
43 guint32 e_operation_pool_reserve_opid (EOperationPool *pool);
44 void e_operation_pool_release_opid (EOperationPool *pool, guint32 opid);
45 void e_operation_pool_push (EOperationPool *pool, gpointer opdata);
47 #endif /* E_OPERATION_POOL_H */