Skip to content

Commit

Permalink
try using __sync_synchronize
Browse files Browse the repository at this point in the history
  • Loading branch information
alja committed Aug 19, 2016
1 parent da8d640 commit afac030
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/XrdCl/XrdClMessageUtils.hh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ namespace XrdCl
{
pStatus = status;
pResponse = response;
__sync_synchronize();
pSem->Post();
}

Expand All @@ -88,6 +89,7 @@ namespace XrdCl
void WaitForResponse()
{
pSem->Wait();
__sync_synchronize();
}

private:
Expand Down

0 comments on commit afac030

Please sign in to comment.