コード例 #1
0
 internal override void Run(HH hh, List <Person> tu)
 {
     if (!hasRun)        // if this RandSeed has never run yet, then produce seeds for all HHs
     {
         lock (randLock)
         {
             if (!hasRun)        // double-check after the lock, just in case...
             {
                 // if this RandSeed has not run before, then add new seeds for this RandSeed to all HHs
                 infoStore.hhAdmin.SetSeed(description.funID, seed);
                 hasRun = true;
             }
         }
     }
     hh.ReadSeed(description.funID);  // move to the next seed for this specific HH
 }