Mercurial > dwindows
comparison mac/dw.m @ 1528:5facb5380944
Added dw_main_quit() function for exiting the dw_main() loop.
Also some cleanups added to dw_exit() on OS/2 and Windows.
Changed OS/2 to no longer destroy the message queue when leaving dw_main()... it should be done in dw_exit().
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 05 Jan 2012 15:45:11 +0000 |
parents | 9bab702bd6c1 |
children | 92bed442620a |
comparison
equal
deleted
inserted
replaced
1527:9bab702bd6c1 | 1528:5facb5380944 |
---|---|
2814 DWThread = (DWTID)-1; | 2814 DWThread = (DWTID)-1; |
2815 dw_mutex_unlock(DWRunMutex); | 2815 dw_mutex_unlock(DWRunMutex); |
2816 } | 2816 } |
2817 | 2817 |
2818 /* | 2818 /* |
2819 * Causes running dw_main() to return. | |
2820 */ | |
2821 void API dw_main_quit(void) | |
2822 { | |
2823 [DWApp stop]; | |
2824 } | |
2825 | |
2826 /* | |
2819 * Runs a message loop for Dynamic Windows, for a period of milliseconds. | 2827 * Runs a message loop for Dynamic Windows, for a period of milliseconds. |
2820 * Parameters: | 2828 * Parameters: |
2821 * milliseconds: Number of milliseconds to run the loop for. | 2829 * milliseconds: Number of milliseconds to run the loop for. |
2822 */ | 2830 */ |
2823 void API dw_main_sleep(int milliseconds) | 2831 void API dw_main_sleep(int milliseconds) |