Page 1 of 1

lock statement

PostPosted: Fri Sep 25, 2009 5:31 am
by Charles
I've added the "lock" statement. Works the same as the C# one.

Would anyone like to volunteer to update the wiki?

Re: lock statement

PostPosted: Sat Sep 26, 2009 8:54 am
by todd.a
Locking. Nice addition. Also the suicide pill, actors ftw!

Re: lock statement

PostPosted: Sat Sep 26, 2009 9:04 am
by Charles
I'm still awaiting your actors patch.

Re: lock statement

PostPosted: Sat Sep 26, 2009 9:16 am
by todd.a
LOL. I was kidding, lock is great stuff. Who needs actors? :)

I like all the recent updates but I have to do manual installations because for some reason ./install-from-workspace does not work like it used to.
sudo ./install-from-workspace puts a blank ./cobra script in /usr/local/cobra/bin for me :S.

Re: lock statement

PostPosted: Sat Sep 26, 2009 2:44 pm
by Charles
Can you fix? Some of the things I work on like making testify multi-threaded are unlikely to be worked on by others. While stuff like this can be diagnosed and patched by most anyone. I'd like to spread more of the effort around on this open source project.

Re: lock statement

PostPosted: Sat Sep 26, 2009 5:44 pm
by todd.a
I did take a look at it a couple days ago and it shows the code doing all the right things. I'll take another look and see if anything changed with regard to previous versions of the file.

Re: lock statement

PostPosted: Tue Sep 29, 2009 4:59 am
by hopscc
First pass of wiki entry at wiki:Lock

Re: lock statement

PostPosted: Tue Sep 29, 2009 2:40 pm
by Charles
Cool. Thanks.

I might use a list instead of an array unless there is an explicit need for an array. I realize you got that from the code you ported from.

Re: lock statement

PostPosted: Tue Sep 29, 2009 8:45 pm
by hopscc
Yeah - Here I admit to a total failure of (my) imagination - simplest conversion of C# examples to cobra

I'm of two minds whether its clearer in those examples to provide exact ports from c# examples to the same thing in cobra or to
convert to cleaner cobra structures ('cobra best practise').

Yesterday was the 'Just port' minds turn :)

OTOH a lot of the C# example code for the documented item is absolute ordure in the first place

Tweak 'em if you like.