[Haskell-cafe] what does "atomically#" mean?

2008-12-07 Thread Daryoush Mehrtash
Any idea was the atomically# mean in the following code? atomically :: STM a -> IO a atomically (STM m) = IO (\s -> (*atomically# *m) s ) Code is from GHC.Conc module http://www.haskell.org/ghc/docs/6.6/html/libraries/base/GHC-Conc.html daryoush ___ Ha

Re: [Haskell-cafe] what does "atomically#" mean?

2009-03-20 Thread Daryoush Mehrtash
I am having hard time making sense of GHC.Conc. Is there a writeup that describes the significance of "#", or the meaning of "primOp" and "primType"? Thanks Daryoush On Sun, Dec 7, 2008 at 11:48 PM, Don Stewart wrote: > dmehrtash: > >Any idea was the atomically# mean in the following cod

Re: [Haskell-cafe] what does "atomically#" mean?

2009-03-20 Thread Martijn van Steenbergen
This might be of some help: http://www.haskell.org/ghc/docs/6.10.1/html/users_guide/syntax-extns.html Daryoush Mehrtash wrote: I am having hard time making sense of GHC.Conc. Is there a writeup that describes the significance of "#", or the meaning of "primOp" and "primType"? _

Re: [Haskell-cafe] what does "atomically#" mean?

2008-12-07 Thread Don Stewart
dmehrtash: >Any idea was the atomically# mean in the following code? > >atomically :: STM a -> IO a >atomically (STM m) = IO (\s -> (atomically# m) s ) > >Code is from GHC.Conc module >[1]http://www.haskell.org/ghc/docs/6.6/html/libraries/base/GHC-Conc.html It is a primitive

Re: [Haskell-cafe] what does "atomically#" mean?

2009-01-30 Thread Daryoush Mehrtash
I like to look at the code where the runtime detects a TVar, inside an atomic block, has been changed by another thread and hence it aborts the atomic operation. Any suggestion as to where I would find the code? daryoush On Sun, Dec 7, 2008 at 10:48 PM, Don Stewart wrote: > dmehrtash: > >

Re: [Haskell-cafe] what does "atomically#" mean?

2009-01-31 Thread Ryan Ingram
That code is in /rts/STM.c -- ryan 2009/1/30 Daryoush Mehrtash : > I like to look at the code where the runtime detects a TVar, inside an > atomic block, has been changed by another thread and hence it aborts the > atomic operation. Any suggestion as to where I would find the code? > > daryou