Add logsys_flush logsys API call to signal the logging thread

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2103 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
Fabio M. Di Nitto 2009-04-21 04:38:49 +00:00
parent c07b3bdc70
commit c6a31d6145
2 changed files with 7 additions and 0 deletions

View File

@ -1466,3 +1466,8 @@ void logsys_atexit (void)
pthread_join (logsys_thread_id, NULL);
}
}
void logsys_flush (void)
{
wthread_signal ();
}

View File

@ -150,6 +150,8 @@ extern void logsys_atexit (void);
/*
* External API - misc
*/
extern void logsys_flush (void);
extern int logsys_log_rec_store (const char *filename);
/*