diff options
author | Marcus Brinkmann <[email protected]> | 2010-11-23 10:47:59 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2010-11-23 10:47:59 +0000 |
commit | e59b0a98bac738787c093f48dc9eebabe0bc0600 (patch) | |
tree | 30f25d086715892f1395409d5b550975f96d0fe6 /src/w32-io.c | |
parent | 2010-11-23 Marcus Brinkmann <[email protected]> (diff) | |
download | gpgme-e59b0a98bac738787c093f48dc9eebabe0bc0600.tar.gz gpgme-e59b0a98bac738787c093f48dc9eebabe0bc0600.zip |
2010-11-23 Marcus Brinkmann <[email protected]>
* w32-io.c (create_reader, create_writer): Use small stack size on
Windows CE.
Diffstat (limited to 'src/w32-io.c')
-rw-r--r-- | src/w32-io.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/w32-io.c b/src/w32-io.c index 6f732030..168177e5 100644 --- a/src/w32-io.c +++ b/src/w32-io.c @@ -464,7 +464,13 @@ create_reader (int fd) ctx->have_data_ev = set_synchronize (ctx->have_data_ev); INIT_LOCK (ctx->mutex); +#ifdef HAVE_W32CE_SYSTEM + ctx->thread_hd = CreateThread (&sec_attr, 64 * 1024, reader, ctx, + STACK_SIZE_PARAM_IS_A_RESERVATION, &tid); +#else ctx->thread_hd = CreateThread (&sec_attr, 0, reader, ctx, 0, &tid); +#endif + if (!ctx->thread_hd) { TRACE_LOG1 ("CreateThread failed: ec=%d", (int) GetLastError ()); @@ -824,7 +830,13 @@ create_writer (int fd) ctx->is_empty = set_synchronize (ctx->is_empty); INIT_LOCK (ctx->mutex); +#ifdef HAVE_W32CE_SYSTEM + ctx->thread_hd = CreateThread (&sec_attr, 64 * 1024, writer, ctx, + STACK_SIZE_PARAM_IS_A_RESERVATION, &tid); +#else ctx->thread_hd = CreateThread (&sec_attr, 0, writer, ctx, 0, &tid ); +#endif + if (!ctx->thread_hd) { TRACE_LOG1 ("CreateThread failed: ec=%d", (int) GetLastError ()); |