Re: stateful state-threads

"Wesley W. Terpstra" <[email protected]> Tue, 25 Nov 2003 01:14:05 +0100
Newsgroups gmane.comp.lib.state-threads.user
Message-ID <[email protected]>
--+HP7ph2BbKc20aGI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Nov 24, 2003 at 10:20:22PM +1100, Cuong Nguyen wrote:
> Does that mean that on return from a read/write wait state, any shared
> variables may not be in the same state (pardon the pun) that it was left
> in before the long read/write operation?

Yes.

The solution (as always): don't do that. =3D)
State threads are still threads and you have to watch out for concurrancy
issues, just not in code which has nothing to do with I/O.

--=20
Wesley W. Terpstra <[email protected]>

--+HP7ph2BbKc20aGI
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/wp7NvLvElXGKklYRAkSAAJ9XT/mcsoa+ihrohYi3Mje2ATZdVgCfeQ5O
TDr89WwLEBMsoZL6p6xUKCA=
=gHum
-----END PGP SIGNATURE-----

--+HP7ph2BbKc20aGI--


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/