Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
b9f06d43
Commit
b9f06d43
authored
Oct 01, 2009
by
hjk
Browse files
debugger: minor whitespace
parent
510bd6dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/shared/trk/trkdevice.cpp
View file @
b9f06d43
...
...
@@ -753,12 +753,12 @@ int UnixReaderThread::tryRead()
if
(
FD_ISSET
(
m_terminatePipeFileDescriptors
[
0
],
&
tempReadSet
)
||
FD_ISSET
(
m_terminatePipeFileDescriptors
[
0
],
&
tempExceptionSet
))
return
1
;
// determine number of pending bytes and read
int
numBytes
;
if
(
ioctl
(
fileDescriptor
,
FIONREAD
,
&
numBytes
)
<
0
)
{
emit
error
(
msgUnixCallFailedErrno
(
"ioctl"
,
errno
));
return
-
1
;
}
m_context
->
mutex
.
lock
();
const
QByteArray
data
=
m_context
->
file
.
read
(
numBytes
);
...
...
@@ -770,7 +770,8 @@ int UnixReaderThread::tryRead()
void
UnixReaderThread
::
run
()
{
// Read loop
while
(
tryRead
()
==
0
)
;
while
(
tryRead
()
==
0
)
;
}
void
UnixReaderThread
::
terminate
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment