vtk-m/vtkm/cont/testing
Kenneth Moreland 10e8a4a7f9 Remove locking control ArrayPortals
Previously, when a ReadPortal or a WritePortal was returned from an
ArrayHandle, it had wrapped in it a Token that was attached to the
ArrayHandle. This Token would prevent other reads and writes from the
ArrayHandle.

This added safety in the form of making sure that the ArrayPortal was
always valid. Unfortunately, it also made deadlocks very easy. They
happened when an ArrayPortal did not leave scope immediately after use
(which is not all that uncommon).

Now, the ArrayPortal no longer locks up the ArrayHandle. Instead, when
an access happens on the ArrayPortal, it checks to make sure that
nothing has happened to the data being accessed. If it has, a fatal
error is reported to the log.
2020-03-16 07:10:10 -06:00
..
CMakeLists.txt Add ability to attach token to standard ArrayHandle 2020-02-25 07:41:36 -07:00
ExplicitTestData.h conslidate the license statement 2019-04-17 10:57:13 -06:00
MakeTestDataSet.h Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
Testing.h Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
TestingArrayHandleMultiplexer.h Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
TestingArrayHandles.h Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
TestingArrayHandleVirtualCoordinates.h Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
TestingBitField.h Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
TestingCellLocatorRectilinearGrid.h Introduce vtkm::ErrorCode 2020-03-13 18:58:33 -06:00
TestingCellLocatorUniformBins.h Introduce vtkm::ErrorCode 2020-03-13 18:58:33 -06:00
TestingCellLocatorUniformGrid.h Introduce vtkm::ErrorCode 2020-03-13 18:58:33 -06:00
TestingColorTable.h Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
TestingComputeRange.h Convert uses of ListTagBase to List 2019-12-06 15:37:46 -07:00
TestingDataSetExplicit.h Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
TestingDataSetSingleType.h Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
TestingDeviceAdapter.h Remove locking control ArrayPortals 2020-03-16 07:10:10 -06:00
TestingFancyArrayHandles.h Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
TestingImplicitFunction.h Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
TestingPointLocatorUniformGrid.h Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
TestingSerialization.h Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
TestingVirtualObjectHandle.h Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestAlgorithm.cxx Convert execution preparation to use tokens 2020-02-25 09:39:19 -07:00
UnitTestArrayCopy.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestArrayGetValues.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestArrayHandleCartesianProduct.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestArrayHandleCompositeVector.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestArrayHandleConcatenate.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestArrayHandleCounting.cxx Remove locking control ArrayPortals 2020-03-16 07:10:10 -06:00
UnitTestArrayHandleDecorator.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestArrayHandleDiscard.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestArrayHandleExtractComponent.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestArrayHandleExtrude.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestArrayHandleImplicit.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestArrayHandleIndex.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestArrayHandlePermutation.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestArrayHandleReverse.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestArrayHandleSwizzle.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestArrayHandleThreadSafety.cxx Remove locking control ArrayPortals 2020-03-16 07:10:10 -06:00
UnitTestArrayHandleTransform.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestArrayHandleUniformPointCoordinates.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestArrayHandleVirtual.cxx Remove locking control ArrayPortals 2020-03-16 07:10:10 -06:00
UnitTestArrayPortalToIterators.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestCellLocatorGeneral.cxx Introduce vtkm::ErrorCode 2020-03-13 18:58:33 -06:00
UnitTestCellSet.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestCellSetExplicit.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestCellSetExtrude.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestCellSetPermutation.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestContTesting.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestDataSetBuilderExplicit.cxx Remove multiple vtkm::cont::CellSet from vtkm::cont::DataSet 2019-09-02 09:04:51 -04:00
UnitTestDataSetBuilderRectilinear.cxx Remove multiple vtkm::cont::CellSet from vtkm::cont::DataSet 2019-09-02 09:04:51 -04:00
UnitTestDataSetBuilderUniform.cxx Remove multiple vtkm::cont::CellSet from vtkm::cont::DataSet 2019-09-02 09:04:51 -04:00
UnitTestDataSetPermutation.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestDataSetRectilinear.cxx Convert execution preparation to use tokens 2020-02-25 09:39:19 -07:00
UnitTestDataSetUniform.cxx Convert execution preparation to use tokens 2020-02-25 09:39:19 -07:00
UnitTestDeviceAdapterAlgorithmDependency.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestDeviceAdapterAlgorithmGeneral.cxx RuntimeDeviceTracker can't be copied and is only accessible via reference. 2019-05-20 11:43:05 -04:00
UnitTestDynamicCellSet.cxx Convert uses of ListTagBase to List 2019-12-06 15:37:46 -07:00
UnitTestError.cxx Fix UnitTestError 2019-10-21 10:08:23 -04:00
UnitTestFieldRangeCompute.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestFieldRangeGlobalCompute.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestInitialize.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestLogging.cxx added VTKM_DEFINE_USER_LOG_LEVEL as a convenience macro 2019-08-07 09:49:29 -06:00
UnitTestMoveConstructors.cxx Convert execution preparation to use tokens 2020-02-25 09:39:19 -07:00
UnitTestPartitionedDataSet.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestRuntimeDeviceInformation.cxx conslidate the license statement 2019-04-17 10:57:13 -06:00
UnitTestRuntimeDeviceNames.cxx Remove DeviceAdapterError as it isn't needed any more. 2019-04-18 15:09:57 -04:00
UnitTestScopedRuntimeDeviceTracker.cxx ScopedRuntimeDeviceTracker have better controls of setting devices. 2019-05-21 15:32:10 -04:00
UnitTestSerializationArrayHandle.cxx Convert uses of ListTagBase to List 2019-12-06 15:37:46 -07:00
UnitTestSerializationDataSet.cxx Convert uses of ListTagBase to List 2019-12-06 15:37:46 -07:00
UnitTestStorageBasic.cxx StealArray now returns the array and free function as a Pair. 2019-05-01 09:42:57 -04:00
UnitTestStorageImplicit.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestStorageList.cxx Remove instances of ListTag in favor of List 2019-12-06 21:32:36 -07:00
UnitTestStorageListTag.cxx Remove instances of ListTag in favor of List 2019-12-06 21:32:36 -07:00
UnitTestTimer.cxx VTK-m Timer now handles when devices fail at runtime 2019-12-12 09:13:23 -05:00
UnitTestToken.cxx Fix race condition in UnitTestToken 2020-02-26 13:10:48 -07:00
UnitTestTryExecute.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00
UnitTestVariantArrayHandle.cxx Use new ways to get array portal in control environment 2020-02-26 13:10:46 -07:00