I do not think will work. Your blocking flag needs to be read and set with an atomic operation (ie. single instruction). See:
Mutual Exclusion: http://en.wikipedia.org/wiki/Mutual_exclusion Atomicity: http://en.wikipedia.org/wiki/Atomicity_%28programming%29 and Concurrency: http://en.wikipedia.org/wiki/Consistency_model M90 clear flags ... M91 P1 Semaphore Down (wait for blocking semaphore #1 and acquire it) ... ... M92 P1 Semaphore Up (release blocking flag #1) As a note, this can also be thought of in terms of Mutexs or Locks, but it must be an atomic operation. EBo -- On Mon, 10 Sep 2012 15:11:04 +0200, andy pugh wrote: > Ignoring (for a moment) the means of communication, could the > handshaking be as simple as a few more M-codes? > > M90 clear flags > M91 P1 wait for blocking flag 1 to clear > M92 P2 set blocking flag 2 > M93 P2 release blocking flag 2 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
