Skip to content

Commit

Permalink
Merge pull request root-project#37 from Dr15Jones/lockTCintCallFunc_F…
Browse files Browse the repository at this point in the history
…actory_calls

Must take cint lock before calling TCint::CallFunc_Factory
  • Loading branch information
ktf committed Oct 15, 2014
2 parents c339f98 + a117763 commit 7be1d41
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/meta/src/TMethodCall.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,10 @@ void TMethodCall::InitImplementation(const char *methodname, const char *params,
// 'methodname' should NOT have any scope information in it. The scope
// information should be passed via the TClass or CINT ClassInfo.

if (!fFunc)
if (!fFunc) {
R__LOCKGUARD2(gCINTMutex);
fFunc = gCint->CallFunc_Factory();
else
} else
gCint->CallFunc_Init(fFunc);

fClass = cl;
Expand Down

0 comments on commit 7be1d41

Please sign in to comment.