sc_mutex and sc_semaphore

From: <john.aynsley@doulos.com>
Date: Thu Mar 25 2010 - 07:16:38 PDT

The two classes sc_mutex and sc_semaphore are derived from
sc_prim_channel, implying that they cannot be instantiated dynamically
during simulation. This has always seemed an unnecessary restriction which
prevents the dynamic creation of mutexes and semaphores for use in
synchronizing dynamic processes.

How about we derive them from sc_object instead? This change would not
break anything, except where someone had derived their own primitive
channel from one of these classes, which seems unlikely.

Then again, perhaps no-one cares either way.

John A

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Mar 25 07:16:59 2010

This archive was generated by hypermail 2.1.8 : Thu Mar 25 2010 - 07:17:02 PDT