LOGICAL
MiCheckPurgeAndUpMapCount(
  IN  PCONTROL_AREA ControlArea
  );

Routine Description:

    This routine synchronizes with any on going purge operations
    on the same segment (identified via the control area).  If
    another purge operation is occurring, the function blocks until
    it is completed.

    When this function returns the MappedView and the NumberOfUserReferences
    count for the control area will be incremented thereby referencing
    the control area.

Arguments:

    ControlArea - Supplies the control area for the segment to be purged.

Return Value:

    TRUE if the synchronization was successful.
    FALSE if the synchronization did not occur due to low resources, etc.

Environment:

    Kernel Mode.