MCPcopy Create free account
hub / github.com/dmlc/dmlc-core / RegisterDelete

Method RegisterDelete

include/dmlc/thread_local.h:72–76  ·  view source on GitHub ↗

! * \brief register str for internal deletion * \param str the string pointer */

Source from the content-addressed store, hash-verified

70 * \param str the string pointer
71 */
72 void RegisterDelete(T *str) {
73 std::unique_lock<std::mutex> lock(mutex_);
74 data_.push_back(str);
75 lock.unlock();
76 }
77 /*! \brief internal mutex */
78 std::mutex mutex_;
79 /*!\brief internal data */

Callers 1

GetMethod · 0.80

Calls 1

unlockMethod · 0.80

Tested by

no test coverage detected