Ignore:
Timestamp:
Mar 21, 2018, 3:21:23 PM (7 years ago)
Author:
bird
Message:

kmk/win: Make outsource the writing part of kmk_builtin_append to a worker thread to try avoid blocking the main kmk thread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin.c

    r3170 r3172  
    239239
    240240    /* More frequently used commands: */
    241     BUILTIN_ENTRY(kmk_builtin_append,   "append",       FN_SIG_MAIN,            0, 0),
     241    BUILTIN_ENTRY(kmk_builtin_append,   "append",       FN_SIG_MAIN_SPAWNS,     0, 0),
    242242    BUILTIN_ENTRY(kmk_builtin_printf,   "printf",       FN_SIG_MAIN,            0, 0),
    243243    BUILTIN_ENTRY(kmk_builtin_echo,     "echo",         FN_SIG_MAIN,            0, 0),
     
    440440 * Prints the statistiscs to the given output stream.
    441441 */
    442 int kmk_builtin_print_stats(FILE *pOutput, const char *pszPrefix)
     442extern void kmk_builtin_print_stats(FILE *pOutput, const char *pszPrefix)
    443443{
    444444    const unsigned  cEntries = sizeof(g_aBuiltInStats) / sizeof(g_aBuiltInStats[0]);
Note: See TracChangeset for help on using the changeset viewer.