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
62d28ae4
Commit
62d28ae4
authored
Nov 07, 2012
by
Davis King
Browse files
Added a missing mutex
parent
444dd70d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
dlib/server/server_http_1.h
dlib/server/server_http_1.h
+7
-1
No files found.
dlib/server/server_http_1.h
View file @
62d28ae4
...
@@ -511,12 +511,17 @@ namespace dlib
...
@@ -511,12 +511,17 @@ namespace dlib
}
}
unsigned
long
get_max_content_length
(
unsigned
long
get_max_content_length
(
)
const
{
return
max_content_length
;
}
)
const
{
auto_mutex
lock
(
http_class_mutex
);
return
max_content_length
;
}
void
set_max_content_length
(
void
set_max_content_length
(
unsigned
long
max_length
unsigned
long
max_length
)
)
{
{
auto_mutex
lock
(
http_class_mutex
);
max_content_length
=
max_length
;
max_content_length
=
max_length
;
}
}
...
@@ -560,6 +565,7 @@ namespace dlib
...
@@ -560,6 +565,7 @@ namespace dlib
}
}
}
}
mutex
http_class_mutex
;
unsigned
long
max_content_length
;
unsigned
long
max_content_length
;
const
static
logger
dlog
;
const
static
logger
dlog
;
};
};
...
...
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