diff options
author | Josh Blum | 2012-10-31 23:09:01 -0700 |
---|---|---|
committer | Josh Blum | 2012-10-31 23:09:01 -0700 |
commit | 485aeea56f4289555d4b94b2c779015de185a5f0 (patch) | |
tree | e628603dda1a24fd2124e2fbb7d5f278856da487 /python | |
parent | 11c658d6ef81257e7c341337ee63e0dc7381478a (diff) | |
download | sandhi-485aeea56f4289555d4b94b2c779015de185a5f0.tar.gz sandhi-485aeea56f4289555d4b94b2c779015de185a5f0.tar.bz2 sandhi-485aeea56f4289555d4b94b2c779015de185a5f0.zip |
swig-ing and test for thread pool
Diffstat (limited to 'python')
-rw-r--r-- | python/gras/CMakeLists.txt | 5 | ||||
-rw-r--r-- | python/gras/GRAS_HierBlock.i (renamed from python/gras/GRASElements.i) | 0 | ||||
-rw-r--r-- | python/gras/GRAS_ThreadPool.i | 25 | ||||
-rw-r--r-- | python/gras/__init__.py | 3 |
4 files changed, 30 insertions, 3 deletions
diff --git a/python/gras/CMakeLists.txt b/python/gras/CMakeLists.txt index 5386096..61e1ba5 100644 --- a/python/gras/CMakeLists.txt +++ b/python/gras/CMakeLists.txt @@ -17,9 +17,10 @@ list(APPEND GR_SWIG_INCLUDE_DIRS ${GRAS_INCLUDE_DIRS}) list(APPEND GR_SWIG_INCLUDE_DIRS ${Boost_INCLUDE_DIRS}) set(GR_SWIG_LIBRARIES gras) -GR_SWIG_MAKE(GRASElements GRASElements.i) +GR_SWIG_MAKE(GRAS_HierBlock GRAS_HierBlock.i) +GR_SWIG_MAKE(GRAS_ThreadPool GRAS_ThreadPool.i) GR_SWIG_INSTALL( - TARGETS GRASElements + TARGETS GRAS_HierBlock GRAS_ThreadPool DESTINATION ${GR_PYTHON_DIR}/gras COMPONENT ${GRAS_COMP_PYTHON} ) diff --git a/python/gras/GRASElements.i b/python/gras/GRAS_HierBlock.i index 413ee2a..413ee2a 100644 --- a/python/gras/GRASElements.i +++ b/python/gras/GRAS_HierBlock.i diff --git a/python/gras/GRAS_ThreadPool.i b/python/gras/GRAS_ThreadPool.i new file mode 100644 index 0000000..a50e8a8 --- /dev/null +++ b/python/gras/GRAS_ThreadPool.i @@ -0,0 +1,25 @@ +// +// Copyright 2012 Josh Blum +// +// This program 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 3 of the License, or +// (at your option) any later version. +// +// This program 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 program. If not, see <http://www.gnu.org/licenses/>. + +#define GRAS_API + +%{ +#include <gras/thread_pool.hpp> +%} + +%include <std_string.i> + +%include <gras/thread_pool.hpp> diff --git a/python/gras/__init__.py b/python/gras/__init__.py index 6a836a6..595efeb 100644 --- a/python/gras/__init__.py +++ b/python/gras/__init__.py @@ -1 +1,2 @@ -from GRASElements import * +from GRAS_HierBlock import * +from GRAS_ThreadPool import * |