comparison gtk3/dw.c @ 1861:c836603d3f14

Add dw_shutdown() function which does the same thing as dw_exit() ... except it doesn't actually end the process. Useful for bindings that are expecting to do their own cleanup after the script exits.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 01 Mar 2013 16:51:08 +0000
parents 4790589f52a9
children 15d24b5300ec
comparison
equal deleted inserted replaced
1860:02a23143334c 1861:c836603d3f14
8390 * Returns the current thread's ID. 8390 * Returns the current thread's ID.
8391 */ 8391 */
8392 DWTID dw_thread_id(void) 8392 DWTID dw_thread_id(void)
8393 { 8393 {
8394 return (DWTID)pthread_self(); 8394 return (DWTID)pthread_self();
8395 }
8396
8397 /*
8398 * Cleanly terminates a DW session, should be signal handler safe.
8399 */
8400 void dw_shutdown(void)
8401 {
8395 } 8402 }
8396 8403
8397 /* 8404 /*
8398 * Cleanly terminates a DW session, should be signal handler safe. 8405 * Cleanly terminates a DW session, should be signal handler safe.
8399 * Parameters: 8406 * Parameters: