Re: Threading problem: Modifying shared scalars from XS

2004-11-22 Thread Yitzchak Scott-Thoennes
On Fri, Nov 19, 2004 at 11:20:19AM -0500, Eric Garland wrote: > Tony Cook wrote: > >On Fri, Nov 19, 2004 at 01:39:29AM -0500, Eric Garland wrote: > Adding SvSETMAGIC(pValue) worked. Thanks! > > The output isn't there because I'm not outputing it. I'm assigning > to an argument passed in to me,

Re: Threading problem: Modifying shared scalars from XS

2004-11-20 Thread Eric Garland
Tony Cook wrote: On Fri, Nov 19, 2004 at 01:39:29AM -0500, Eric Garland wrote: I have a piece of code in XS land that reads data from an external source and populates a scalar that's passed in to it (ala sysread). It doesn't seem to work if I pass a shared variable in to it though. Is there any d

Re: Threading problem: Modifying shared scalars from XS

2004-11-19 Thread Tony Cook
On Fri, Nov 19, 2004 at 01:39:29AM -0500, Eric Garland wrote: > I have a piece of code in XS land that reads data from an > external source and populates a scalar that's passed > in to it (ala sysread). It doesn't seem to work if I > pass a shared variable in to it though. Is there any > document

Re: Threading problem: Modifying shared scalars from XS

2004-11-19 Thread Yitzchak Scott-Thoennes
On Fri, Nov 19, 2004 at 01:39:29AM -0500, Eric Garland wrote: > If I call it like this: > > $bytes_read = $tag->funny_internal_function_name( $tag, > $shared_array->[BUFFER], $offset, $length, $options) > > $shared_array->[BUFFER] stays empty. > > > If I call it like this: > > my ($tmp)