Commit 57486ffe authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Fixes in SharedPointer documentation.

parent cc136efa
Loading
Loading
Loading
Loading
+50 −49
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ namespace Pointers {
#if ! defined HAVE_CUDA_UNIFIED_MEMORY

/**
 * \brief Specialization of the UniquePointer for the CUDA device.
 * \brief Specialization of the \ref SharedPointer for the CUDA device.
 *
 * \tparam  Object is a type of object to be owned by the pointer.
 */
@@ -431,9 +431,10 @@ class SharedPointer< Object, Devices::Cuda > : public SmartPointer
      /**
       * \brief Cross-device pointer synchronization.
       *
       * For the smart pointers in the host, this method does nothing.
       * This method is usually called by the smart pointers register when calling
       * \ref Pointers::synchronizeSmartPointersOnDevice< Devices::Cuda >()
       *
       * \return true.
       * \return true if the synchronization was successful, false otherwise.
       */
      bool synchronize()
      {
+39 −39
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ namespace TNL {
namespace Pointers {

/**
 * \brief Specialization of the UniquePointer for the host system.
 * \brief Specialization of the \ref SharedPointer for the host system.
 *
 * \tparam  Object is a type of object to be owned by the pointer.
 */
@@ -63,7 +63,7 @@ class SharedPointer< Object, Devices::Host > : public SmartPointer
      using DeviceType = Devices::Host;

      /**
       * \brief Constructor of empty pointer.
       * \brief Constructor of an empty pointer.
       */
      SharedPointer( std::nullptr_t )
      : pd( nullptr )
@@ -351,7 +351,7 @@ class SharedPointer< Object, Devices::Host > : public SmartPointer
      /**
       * \brief Cross-device pointer synchronization.
       *
       * For the smart pointers in the host, this method does nothing.
       * For the smart pointers on the host, this method does nothing.
       *
       * \return true.
       */