Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
26251f44
Commit
26251f44
authored
Jul 10, 2018
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unnecessary sleep.
parent
b3a59146
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
xtt/lib/cow/src/cow_log.cpp
xtt/lib/cow/src/cow_log.cpp
+5
-8
No files found.
xtt/lib/cow/src/cow_log.cpp
View file @
26251f44
...
...
@@ -75,14 +75,11 @@ void CoLog::log( const char *category, const char *str, const char *cmt, unsigne
strncpy
(
comment
,
ret
->
input_str
,
sizeof
(
comment
));
free
(
ret
);
}
for
(
int
i
=
0
;
i
<
5
;
i
++
)
{
fp
.
open
(
m_filename
,
ios
::
out
|
ios
::
app
);
if
(
fp
)
break
;
sleep
(
1
);
}
if
(
!
fp
)
fp
.
open
(
m_filename
,
ios
::
out
|
ios
::
app
);
if
(
!
fp
)
{
fprintf
(
stderr
,
"Warning! CoLog::log could not open log file %s
\n
"
,
m_filename
);
return
;
}
if
(
m_level
==
1
)
fp
<<
"1 "
;
...
...
@@ -104,7 +101,7 @@ void CoLog::log( const char *category, const char *str, const char *cmt, unsigne
if
(
strcmp
(
comment
,
""
)
!=
0
)
fp
<<
"
\"
"
<<
comment
<<
"
\"
"
;
fp
<<
endl
;
fp
.
close
();
fp
.
close
();
}
void
CoLog
::
get
(
char
categories
[][
20
],
char
*
item
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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