Skip to content
Snippets Groups Projects
Commit 6b114cfe authored by Takashi Yamanaka's avatar Takashi Yamanaka
Browse files

Merge branch 'streamerGenerate.AthContainers-20170420' into 'master'

AthContainers: MT fix for PackedContainerStreamer.

See merge request !1069
parents 5b000d42 5608c498
No related branches found
No related tags found
No related merge requests found
...@@ -90,6 +90,12 @@ public: ...@@ -90,6 +90,12 @@ public:
virtual void operator()(TBuffer &b, void *objp); virtual void operator()(TBuffer &b, void *objp);
/**
* @brief Clone operation, required for MT.
*/
virtual TClassStreamer* Generate() const override;
private: private:
/// Name of the class we read/write (for error messages). /// Name of the class we read/write (for error messages).
std::string m_className; std::string m_className;
...@@ -152,6 +158,16 @@ void PackedContainerStreamer<T>::operator() ( TBuffer& b, void* objp ) { ...@@ -152,6 +158,16 @@ void PackedContainerStreamer<T>::operator() ( TBuffer& b, void* objp ) {
} }
/**
* @brief Clone operation, required for MT.
*/
template <class T>
TClassStreamer* PackedContainerStreamer<T>::Generate() const
{
return new PackedContainerStreamer<T> (*this);
}
template <class T> template <class T>
struct InstallPackedContainerStreamer; struct InstallPackedContainerStreamer;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment