mirror of
https://github.com/cesanta/mongoose.git
synced 2025-06-12 20:59:03 +08:00
Added NO_THREADS wrapper
This commit is contained in:
parent
472e198d4a
commit
0148bc804a
@ -390,6 +390,7 @@ static const struct {
|
|||||||
{NULL, 0, NULL}
|
{NULL, 0, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifndef NO_THREADS
|
||||||
void *mg_start_thread(void *(*f)(void *), void *p) {
|
void *mg_start_thread(void *(*f)(void *), void *p) {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
return (void *) _beginthread((void (__cdecl *)(void *)) f, 0, p);
|
return (void *) _beginthread((void (__cdecl *)(void *)) f, 0, p);
|
||||||
@ -411,6 +412,7 @@ void *mg_start_thread(void *(*f)(void *), void *p) {
|
|||||||
return (void *) thread_id;
|
return (void *) thread_id;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif // NO_THREADS
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// Encode 'path' which is assumed UTF-8 string, into UNICODE string.
|
// Encode 'path' which is assumed UTF-8 string, into UNICODE string.
|
||||||
|
Loading…
Reference in New Issue
Block a user