Cancel
Showing results for 
Search instead for 
Did you mean: 

Buffer exit Locking/unlocking

Experimenter
Experimenter

Hi,

 

I have a problem with locking the buffer exit. I'm able to lock the exit with my Method code but the exit won't unlock as I would like to. The buffer exit should be locked until the buffer is full and after the exit should be unlocked. Currently the buffer only gets full, but never goes empty.

 

if buffer_41.empty then
    waituntil buffer_41.full prio 1;
    buffer_41.exitLocked:=true;
elseif buffer_41.full then
    buffer_41.exitLocked:=false;
end;

 

Could someone advise what I'm doing wrong?

 

Thanks in advance!

 

2 REPLIES

Re: Buffer exit Locking/unlocking

Phenom
Phenom

this is how it goes with an entrance - and an exit method

 

have a look

Re: Buffer exit Locking/unlocking

Experimenter
Experimenter

Thanks a lot!