Skip to content

Commit

Permalink
Merge pull request #388 from JeffersonLab/nbrei_gluex_fixes
Browse files Browse the repository at this point in the history
More small fixes for GlueX
  • Loading branch information
nathanwbrei authored Dec 5, 2024
2 parents e6da892 + 34d66d4 commit ef4877d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/libraries/JANA/Compatibility/JLockService.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ class JLockService : public JService {
}

~JLockService() override {
delete m_app_rw_lock;
delete m_root_rw_lock;
for (const auto& pair : m_rw_locks) {
delete pair.second;
}
Expand Down Expand Up @@ -70,8 +68,8 @@ class JLockService : public JService {
private:

std::map<std::string, pthread_rwlock_t *> m_rw_locks;
pthread_rwlock_t *m_app_rw_lock;
pthread_rwlock_t *m_root_rw_lock;
pthread_rwlock_t *m_app_rw_lock = nullptr;
pthread_rwlock_t *m_root_rw_lock = nullptr;
pthread_rwlock_t m_rw_locks_lock {}; // control access to rw_locks
pthread_rwlock_t m_root_fill_locks_lock {}; // control access to m_root_fill_rw_lock
std::map<JEventProcessor *, pthread_rwlock_t *> m_root_fill_rw_lock;
Expand Down
1 change: 0 additions & 1 deletion src/libraries/JANA/JEventSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class JEventSource : public jana::components::JComponent,


public:
[[deprecated]]
explicit JEventSource(std::string resource_name, JApplication* app = nullptr)
: m_resource_name(std::move(resource_name)) {
m_app = app;
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/JANA/JFactoryT.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class JFactoryT : public JFactory {
using IteratorType = typename std::vector<T*>::const_iterator;
using PairType = std::pair<IteratorType, IteratorType>;

JFactoryT() : JFactory(JTypeInfo::demangle<T>(), ""){
JFactoryT(std::string tag="") : JFactory(JTypeInfo::demangle<T>(), tag){
EnableGetAs<T>();
EnableGetAs<JObject>( std::is_convertible<T,JObject>() ); // Automatically add JObject if this can be converted to it
#if JANA2_HAVE_ROOT
Expand Down

0 comments on commit ef4877d

Please sign in to comment.