Conversation with #inferno at Sat Dec 11 18:36:23 2010 on powerman-asdf@irc.freenode.net (irc) (19:08:31) mjl-: powerman-asdf: acquire/release is for getting into/out of the dis vm. there must be one proc manipulating dis data structures at a time. (19:10:10) mjl-: so dis modules that are implemented in c often release() when before they call more c code that can run concurrently (and doesn't do dis vm stuff), and acquire before returning into the dis caller again (or when they want to change dis vm datastructures again) (19:10:19) mjl-: hope this makes some sense. (19:10:21) mjl-: off to eat now (19:14:04) powerman: to do release() in these modules I think someone have to do acquire() first (19:15:05) powerman: all dis code executed under acquire()? (20:00:59) mjl-: yes, as far as i know (20:04:20) mjl-: so eg in libinterp/ipint.c:/^IPint_random (which is the function "random" on an IPint), that function is code from the dis vm ("acquired"), it does some stuff with the dis vm structures (return value of the function), then releases, goes into the c code with mprand(), and acquire()'s again afterwards (before returning) (21:09:15) bvalek2 [5985141d@gateway/web/freenode/ip.89.133.20.29] entered the room. (21:09:20) bvalek2 left the room (quit: Changing host). (21:09:21) bvalek2 [5985141d@unaffiliated/bvalek2] entered the room. (21:09:21) bvalek2 left the room (quit: Changing host). (21:09:21) bvalek2 [5985141d@gateway/web/freenode/ip.89.133.20.29] entered the room. (23:58:12) Fish left the room (quit: Quit: So Long, and Thanks for All the Fish). (01:33:19) yngve left the room (quit: Quit: leaving). (04:05:03) bvalek2 left the room (quit: Quit: Page closed). (06:25:33) acmeuser [~acmeuser@c-98-200-189-134.hsd1.tx.comcast.net] entered the room. (06:25:38) acmeuser left the room. (08:04:45) anth_r: know (08:04:54) anth_r: whoops, sorry. (11:12:18) bvalek2 [5985141d@gateway/web/freenode/ip.89.133.20.29] entered the room. (11:35:13) The account has disconnected and you are no longer in this chat. You will be automatically rejoined in the chat when the account reconnects.