1 /* $Id: test_sel_thread.c,v 1.1 2007-04-20 10:06:52 adam Exp $
2 Copyright (c) 2006-2007, Index Data.
4 This file is part of Pazpar2.
6 Pazpar2 is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 2, or (at your option) any later
11 Pazpar2 is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 You should have received a copy of the GNU General Public License
17 along with Pazpar2; see the file LICENSE. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
26 #include "sel_thread.h"
33 static void work_handler(void *vp)
35 struct my_work_data *p = vp;
39 static void test_1(void)
42 sel_thread_t p = sel_thread_create(work_handler, &fd);
45 sel_thread_destroy(p);
48 int main(int argc, char **argv)
50 YAZ_CHECK_INIT(argc, argv);
64 * indent-tabs-mode: nil
66 * vim: shiftwidth=4 tabstop=8 expandtab