[Armadeus-commitlog] armadeus branch, master, updated. armadeus-5.0-62-g959ca93
Brought to you by:
sszy
|
From: Fabien M <fa...@us...> - 2012-10-01 12:47:08
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, master has been updated
via 959ca9398906b02348a720eca13c82ae2172ad8f (commit)
from 5313aeb0d07f03441d275cbc8a34c0458b750735 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 959ca9398906b02348a720eca13c82ae2172ad8f
Author: brett.muir <bre...@so...>
Date: Mon Oct 1 14:46:27 2012 +0200
[as_devices] allow blockingGetPinValue function to be used under python thread
-----------------------------------------------------------------------
Summary of changes:
.../packages/as_devices/python/src/AsGpio_wrap.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/target/packages/as_devices/python/src/AsGpio_wrap.c b/target/packages/as_devices/python/src/AsGpio_wrap.c
index 1b11fe1..29b0da7 100644
--- a/target/packages/as_devices/python/src/AsGpio_wrap.c
+++ b/target/packages/as_devices/python/src/AsGpio_wrap.c
@@ -238,7 +238,9 @@ static PyObject * blockingGetPinValue(PyObject *self, PyObject *args)
return NULL;
}
+Py_BEGIN_ALLOW_THREADS
ret = as_gpio_wait_event(aFdev, aDelay_ms);
+Py_END_ALLOW_THREADS
if (ret == -ETIMEDOUT)
{
PyErr_SetString(PyExc_IOError, "TIMEOUT");
hooks/post-receive
--
armadeus
|