示例#1
0
 public static void InitialUpdater(AdId *key, Input *input, NumClicks *value)
 {
     NumClicks.Copy(&input->numClicks, value);
 }
示例#2
0
 public static void ConcurrentWriter(AdId *key, NumClicks *src, NumClicks *dst)
 {
     NumClicks.AcquireWriteLock(dst);
     NumClicks.Copy(src, dst);
     NumClicks.ReleaseWriteLock(dst);
 }
示例#3
0
 public static void ConcurrentReader(AdId *key, Input *input, NumClicks *value, Output *dst)
 {
     NumClicks.AcquireReadLock(value);
     NumClicks.Copy(value, (NumClicks *)dst);
     NumClicks.ReleaseReadLock(value);
 }
示例#4
0
 public static void SingleWriter(AdId *key, NumClicks *src, NumClicks *dst)
 {
     NumClicks.Copy(src, dst);
 }
示例#5
0
 public static void SingleReader(AdId *key, Input *input, NumClicks *value, Output *dst)
 {
     NumClicks.Copy(value, (NumClicks *)dst);
 }