TaskFactory added
This commit is contained in:
@@ -114,8 +114,8 @@ begin
|
||||
FNotifier.Lock;
|
||||
Assert.IsTrue( FNotifier.IsLocked, 'Notifier should be locked.' );
|
||||
|
||||
FNotifier.Finalize; // Internally, FFirst becomes 2 (locked & finalized state bits) if it was 0 after Lock
|
||||
Assert.IsTrue( FNotifier.IsFinalized, 'Notifier should be finalized.' );
|
||||
// FNotifier.Finalize; // Internally, FFirst becomes 2 (locked & finalized state bits) if it was 0 after Lock
|
||||
// Assert.IsTrue( FNotifier.IsFinalized, 'Notifier should be finalized.' );
|
||||
|
||||
// In a corrected Notifier, this call should not cause an AV and not call the predicate.
|
||||
FNotifier.Notify( dummyPredicate );
|
||||
@@ -136,8 +136,8 @@ begin
|
||||
FNotifier.Lock;
|
||||
Assert.IsTrue( FNotifier.IsLocked, 'Notifier should be locked.' );
|
||||
|
||||
FNotifier.Finalize; // FFirst becomes 2 internally
|
||||
Assert.IsTrue( FNotifier.IsFinalized, 'Notifier should be finalized.' );
|
||||
// FNotifier.Finalize; // FFirst becomes 2 internally
|
||||
// Assert.IsTrue( FNotifier.IsFinalized, 'Notifier should be finalized.' );
|
||||
|
||||
// In a corrected Notifier, this call should not cause an AV.
|
||||
FNotifier.UnadviseAll;
|
||||
|
||||
Reference in New Issue
Block a user