Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
c016de42
Commit
c016de42
authored
Nov 18, 2012
by
Davis King
Browse files
Made the linker's destructor behavior a little more reasonable.
parent
9e7d0d0f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
dlib/linker/linker_kernel_1.cpp
dlib/linker/linker_kernel_1.cpp
+9
-1
No files found.
dlib/linker/linker_kernel_1.cpp
View file @
c016de42
...
@@ -154,6 +154,10 @@ namespace dlib
...
@@ -154,6 +154,10 @@ namespace dlib
error
=
true
;
error
=
true
;
break
;
break
;
}
}
else
if
(
status
==
SHUTDOWN
)
{
b
.
shutdown
();
}
if
(
status
<=
0
)
if
(
status
<=
0
)
{
{
...
@@ -278,6 +282,10 @@ namespace dlib
...
@@ -278,6 +282,10 @@ namespace dlib
error
=
true
;
error
=
true
;
break
;
break
;
}
}
else
if
(
status
==
SHUTDOWN
)
{
a
.
shutdown
();
}
if
(
status
<=
0
)
if
(
status
<=
0
)
...
@@ -315,7 +323,7 @@ namespace dlib
...
@@ -315,7 +323,7 @@ namespace dlib
{
{
p
.
service_connection_error_mutex
.
lock
();
p
.
service_connection_error_mutex
.
lock
();
p
.
service_connection_error
=
true
;
p
.
service_connection_error
=
true
;
p
.
service_connection_error_mutex
.
lock
();
p
.
service_connection_error_mutex
.
un
lock
();
}
}
// signal that this function is ending
// signal that this function is ending
...
...
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