TMutable
This commit is contained in:
@@ -14,13 +14,13 @@ uses
|
||||
|
||||
type
|
||||
// Helper class to notify a latch when its Notify method is called.
|
||||
TLatchNotifierSubscriber = class(TInterfacedObject, IMycSubscriber)
|
||||
TLatchNotifierSubscriber = class(TInterfacedObject, TSignal.ISubscriber)
|
||||
private
|
||||
FGateLatch: TLatch.ILatch;
|
||||
public
|
||||
constructor Create(AGateLatch: TLatch.ILatch);
|
||||
// IMycSubscriber
|
||||
function Notify: Boolean; // Implements IMycSubscriber.Notify [cite: 46, 181, 299]
|
||||
// TSignal.ISubscriber
|
||||
function Notify: Boolean; // Implements TSignal.ISubscriber.Notify [cite: 46, 181, 299]
|
||||
end;
|
||||
|
||||
[TestFixture]
|
||||
@@ -251,7 +251,7 @@ var
|
||||
LPrerequisiteFuture1, LPrerequisiteFuture2: TFuture<Integer>.IFuture;
|
||||
LMainFuture: TFuture<string>.IFuture;
|
||||
LGateLatch: TLatch.ILatch;
|
||||
LSub1, LSub2: IMycSubscriber; // To hold the TLatchNotifierSubscriber instances
|
||||
LSub1, LSub2: TSignal.ISubscriber; // To hold the TLatchNotifierSubscriber instances
|
||||
LInitStateP1, LInitStateP2: TLatch.ILatch;
|
||||
Subscriptions: array[1..2] of TSignal.TSubscription; // To manage subscriptions
|
||||
const
|
||||
|
||||
Reference in New Issue
Block a user