0.1.3
[kbuild-mirror.git] / src / kash / shthread.c
bloba4b62d2a0fb61228724cee5976fae52dbd1d03e7
1 /* $Id$ */
2 /** @file
4 * Shell Thread Management.
6 * Copyright (c) 2007 knut st. osmundsen <bird-src-spam@anduin.net>
9 * This file is part of kBuild.
11 * kBuild is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * kBuild is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with kBuild; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 #include "shthread.h"
28 #include "shinstance.h"
30 #if defined(_MSC_VER) || defined(__EMX__)
31 # include <process.h>
32 #else
33 # include <pthread.h>
34 #endif
37 void shthread_set_shell(struct shinstance *psh)
42 struct shinstance *shthread_get_shell(void)
44 shinstance *psh = NULL;
45 return psh;