Skip to content

Commit

Permalink
Merge pull request root-project#22 from Dr15Jones/lockTMethodCallRetu…
Browse files Browse the repository at this point in the history
…rnType

Add missing lock.
  • Loading branch information
ktf committed Sep 15, 2014
2 parents 6685636 + 800d8db commit 67f4a75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/meta/src/TMethodCall.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,12 @@ TMethodCall::EReturnType TMethodCall::ReturnType()
// Since finding the return type is expensive the result is cached.

if ( fRetType == kNone) {
R__LOCKGUARD2(gCINTMutex);

if ( fRetType != kNone) {
return fRetType;
}

TFunction *func = GetMethod();
if (func == 0) {
fRetType = kOther;
Expand Down

0 comments on commit 67f4a75

Please sign in to comment.