Forums

lock statement

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

lock statement

Postby Charles » Fri Sep 25, 2009 5:31 am

I've added the "lock" statement. Works the same as the C# one.

Would anyone like to volunteer to update the wiki?
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: lock statement

Postby todd.a » Sat Sep 26, 2009 8:54 am

Locking. Nice addition. Also the suicide pill, actors ftw!
todd.a
Site Admin
 
Posts: 81
Location: Chicago, IL

Re: lock statement

Postby Charles » Sat Sep 26, 2009 9:04 am

I'm still awaiting your actors patch.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: lock statement

Postby todd.a » Sat Sep 26, 2009 9:16 am

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.
todd.a
Site Admin
 
Posts: 81
Location: Chicago, IL

Re: lock statement

Postby Charles » Sat Sep 26, 2009 2:44 pm

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.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: lock statement

Postby todd.a » Sat Sep 26, 2009 5:44 pm

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.
todd.a
Site Admin
 
Posts: 81
Location: Chicago, IL

Re: lock statement

Postby hopscc » Tue Sep 29, 2009 4:59 am

First pass of wiki entry at wiki:Lock
hopscc
 
Posts: 632
Location: New Plymouth, Taranaki, New Zealand

Re: lock statement

Postby Charles » Tue Sep 29, 2009 2:40 pm

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.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: lock statement

Postby hopscc » Tue Sep 29, 2009 8:45 pm

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.
hopscc
 
Posts: 632
Location: New Plymouth, Taranaki, New Zealand


Return to Discussion

Who is online

Users browsing this forum: No registered users and 44 guests