diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1992-08-13 14:13:11 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1992-08-13 14:13:11 (GMT) |
commit | 743db36cd208c6f212a6b534e6bb8ee9256505ad (patch) | |
tree | 4fd1cb1b4cfd05d3f6962df90b563cd71641a680 /Modules/almodule.c | |
parent | 1738388c59c0fb727f73024e469aae59dda43ae7 (diff) | |
download | cpython-743db36cd208c6f212a6b534e6bb8ee9256505ad.zip cpython-743db36cd208c6f212a6b534e6bb8ee9256505ad.tar.gz cpython-743db36cd208c6f212a6b534e6bb8ee9256505ad.tar.bz2 |
Modified to allow other threads to run in a multithreaded environment.
Diffstat (limited to 'Modules/almodule.c')
-rw-r--r-- | Modules/almodule.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/almodule.c b/Modules/almodule.c index 36cdedd..044baae 100644 --- a/Modules/almodule.c +++ b/Modules/almodule.c @@ -30,6 +30,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "import.h" #include "modsupport.h" #include "structmember.h" +#include "ceval.h" /* Config objects */ @@ -274,7 +275,9 @@ al_readsamps (self, args) v = newsizedstringobject ((char *)NULL, width * count); if (v == NULL) return NULL; + BGN_SAVE ALreadsamps (self-> ob_port, (void *) getstringvalue(v), count); + END_SAVE return (v); } @@ -294,7 +297,9 @@ al_writesamps (self, args) c = ALgetconfig(self->ob_port); width = ALgetwidth(c); ALfreeconfig(c); + BGN_SAVE ALwritesamps (self-> ob_port, (void *) buf, (long) size / width); + END_SAVE INCREF (None); return None; @@ -361,6 +366,7 @@ al_getconfig (self, args) static struct methodlist port_methods[] = { {"closeport", al_closeport}, {"getfd", al_getfd}, + {"fileno", al_getfd}, {"getfilled", al_getfilled}, {"getfillable", al_getfillable}, {"readsamps", al_readsamps}, |