mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-19 10:35:42 +00:00
10e8a4a7f9
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.
48 lines
1.4 KiB
CMake
48 lines
1.4 KiB
CMake
##============================================================================
|
|
## Copyright (c) Kitware, Inc.
|
|
## All rights reserved.
|
|
## See LICENSE.txt for details.
|
|
##
|
|
## This software is distributed WITHOUT ANY WARRANTY; without even
|
|
## the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
## PURPOSE. See the above copyright notice for more information.
|
|
##============================================================================
|
|
|
|
set(headers
|
|
ArrayExportMacros.h
|
|
ArrayHandleBasicImpl.h
|
|
ArrayHandleBasicImpl.hxx
|
|
ArrayHandleExecutionManager.h
|
|
ArrayManagerExecution.h
|
|
ArrayManagerExecutionShareWithControl.h
|
|
ArrayPortalCheck.h
|
|
ArrayPortalFromIterators.h
|
|
ArrayTransfer.h
|
|
AtomicInterfaceControl.h
|
|
AtomicInterfaceExecution.h
|
|
ConnectivityExplicitInternals.h
|
|
DeviceAdapterAlgorithmGeneral.h
|
|
DeviceAdapterListHelpers.h
|
|
FunctorsGeneral.h
|
|
IteratorFromArrayPortal.h
|
|
KXSort.h
|
|
OptionParser.h
|
|
ParallelRadixSort.h
|
|
ParallelRadixSortInterface.h
|
|
ReverseConnectivityBuilder.h
|
|
StorageError.h
|
|
TransferInfo.h
|
|
VariantArrayHandleContainer.h
|
|
VirtualObjectTransfer.h
|
|
VirtualObjectTransferShareWithControl.h
|
|
)
|
|
|
|
vtkm_declare_headers(${headers})
|
|
|
|
# These source files are actually compiled in the parent directory.
|
|
# They are in a separate directory to highlight which objects are
|
|
# internal and which are part of the external interface.
|
|
#add_custom_target(vtkmContInternal ALL DEPENDS vtkmCont)
|
|
|
|
add_subdirectory(testing)
|