mlock bug
Ben Abbott
bpabbott at mac.com
Sat Feb 16 20:22:57 CST 2008
"mlock" appears to not function for my installation.
---------------------------
function y = test_mlock (x)
persistent s = 0
mlock;
if (nargin > 0)
s = x;
endif
y = s;
endfunction
---------------------------
octave:1> test_mlock
ans = 0
octave:2> test_mlock(1)
ans = 1
octave:3> test_mlock
ans = 1
octave:4> clear all
octave:5> test_mlock
ans = 0
octave:6> ver
----------------------------------------------------------------------
GNU Octave Version 3.0.0+
GNU Octave License: GNU General Public License
Operating System: Darwin 9.2.0 Darwin Kernel Version 9.2.0: Tue Feb 5
16:13:22 PST 2008; root:xnu-1228.3.13~1/RELEASE_I386 i386
----------------------------------------------------------------------
Should not the answer to line 5 still be "1"?
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080216/05d17aff/attachment.html
More information about the Bug-octave
mailing list