projects
/
sdk
/
tools
/
heaptrack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a413a8f
)
Group disabling of stdio locking code.
author
Milian Wolff
<mail@milianw.de>
Mon, 15 Jun 2015 21:03:37 +0000
(23:03 +0200)
committer
Milian Wolff
<mail@milianw.de>
Mon, 15 Jun 2015 21:03:37 +0000
(23:03 +0200)
heaptrack_interpret.cpp
patch
|
blob
|
history
diff --git
a/heaptrack_interpret.cpp
b/heaptrack_interpret.cpp
index 0d852be4c7d2067a5bf5d0a19694f68868ce1df9..1392b9807f387a6a5694951f5c1006d44ffb650d 100644
(file)
--- a/
heaptrack_interpret.cpp
+++ b/
heaptrack_interpret.cpp
@@
-333,6
+333,8
@@
int main(int /*argc*/, char** /*argv*/)
{
// optimize: we only have a single thread
ios_base::sync_with_stdio(false);
+ __fsetlocking(stdout, FSETLOCKING_BYCALLER);
+ __fsetlocking(stdin, FSETLOCKING_BYCALLER);
AccumulatedTraceData data;
@@
-340,9
+342,6
@@
int main(int /*argc*/, char** /*argv*/)
string exe;
- __fsetlocking(stdout, FSETLOCKING_BYCALLER);
- __fsetlocking(stdin, FSETLOCKING_BYCALLER);
-
while (reader.getLine(cin)) {
if (reader.mode() == 'x') {
reader >> exe;