aboutsummaryrefslogtreecommitdiff
path: root/pdoctave_send.c
diff options
context:
space:
mode:
authorFranz Zotter <fzotter@users.sourceforge.net>2006-03-25 13:14:59 +0000
committerFranz Zotter <fzotter@users.sourceforge.net>2006-03-25 13:14:59 +0000
commit6b079b5df20a90500294e2f1a58912b32074cd82 (patch)
tree23bdb7515ac1a6ae6343bf1a85904057ea396388 /pdoctave_send.c
parent47979e4af5ff135984a22d5ecb6ef7acb69f6f0f (diff)
changed a lot: pdoctave_dataframe: sleepUntil changed. Doesn't work yet, perhaps will not work that way. Looking for a suitable solution...
pdoctave.c: starting octave when loading lib. removed the pdoctave object. Started general chaos... svn path=/trunk/externals/iem/pdoctave/; revision=4766
Diffstat (limited to 'pdoctave_send.c')
-rw-r--r--pdoctave_send.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/pdoctave_send.c b/pdoctave_send.c
index 8492120..0ad0f2f 100644
--- a/pdoctave_send.c
+++ b/pdoctave_send.c
@@ -96,7 +96,11 @@ static void pDOctaveSend (PDOctaveSend *pdoctsnd_obj,
sdf = pdoctsnd_obj->sdf;
- sleepUntilWriteUnBlocked (sdf, STD_USLEEP_TIME);
+ //sleepUntilWriteUnBlocked (sdf, STD_USLEEP_TIME);
+ if ((sleepUntilWriteUnBlocked (sdf))==0) {
+ error("pdoctave_send: pd and octave scheduling error, restart pd");
+ return;
+ }
blockForWriting (sdf);
if (pdoctsnd_obj->data)
@@ -128,7 +132,10 @@ static void pDOctaveSend (PDOctaveSend *pdoctsnd_obj,
blockForReading (sdf);
freeSharedData (sdf, &(pdoctsnd_obj->data));
pDOctaveSendBang (pdoctsnd_obj);
- sleepUntilReadUnBlocked (sdf,STD_USLEEP_TIME);
+ if ((sleepUntilReadUnBlocked (sdf))==0) {
+ error("pdoctave_send: pd and octave scheduling error, restart pd");
+ return;
+ }
unBlockForWriting (sdf);
}