Commit Graph

1371 Commits

Author SHA1 Message Date
Vincent Wei
cd92e4b7fe declare BroadcastMessageInThisThread 2020-02-17 19:20:12 +08:00
Vincent Wei
3a2224cd4b rename getMsgQueueByWindowInThisThread to getMsgQueueIfWindowInThisThread 2020-02-17 16:21:55 +08:00
Vincent Wei
00fd9fea0f init pre default virtual window proc 2020-02-17 16:21:19 +08:00
Vincent Wei
fe2e439fca init pre default virtual window proc 2020-02-17 16:21:13 +08:00
Vincent Wei
7608e5a5fe cleanup 2020-02-17 16:20:37 +08:00
Vincent Wei
2adb9954a8 tune __mg_def_proc 2020-02-17 16:20:25 +08:00
Vincent Wei
5cb8662ec8 rename getMsgQueueByWindowInThisThread to getMsgQueueIfWindowInThisThread 2020-02-17 16:20:07 +08:00
Vincent Wei
628c27fc7a declare IsWindowInThisThread, PreDefVirtualWinProc, DefaultVirtualWinProc, and IsVirtualWindow; tune some description words 2020-02-17 16:19:34 +08:00
Vincent Wei
3e9847ab13 declare IsWindowInThisThread, PreDefVirtualWinProc, DefaultVirtualWinProc, and IsVirtualWindow; tune some description words 2020-02-17 16:19:15 +08:00
Vincent Wei
b225c095c7 tune 2020-02-16 22:41:25 +08:00
Vincent Wei
049a39548a move code handling hosting to window.c 2020-02-16 22:40:58 +08:00
Vincent Wei
4c782a1b7e move hosting handling to window.c 2020-02-16 22:40:18 +08:00
Vincent Wei
fbc9a630f7 cleanup 2020-02-16 22:39:29 +08:00
Vincent Wei
9c9bd2fe2b handle hosting of virtual windows and main windows 2020-02-16 22:38:48 +08:00
Vincent Wei
3aa8424b90 tune code for listen fd sets from message queue 2020-02-16 18:51:04 +08:00
Vincent Wei
cd6ba8e838 tune code for listen fd sets from message queue 2020-02-16 18:50:52 +08:00
Vincent Wei
664c30fb94 tune code for listen fd sets from message queue 2020-02-16 18:50:36 +08:00
Vincent Wei
464c18dc74 remove listenfd.c 2020-02-16 18:50:11 +08:00
Vincent Wei
490ae66cde tune code for listen fd sets and OnIdle 2020-02-16 18:49:56 +08:00
Vincent Wei
274500ffa0 cleanup 2020-02-16 18:49:06 +08:00
Vincent Wei
7370ae6864 cleanup 2020-02-16 18:48:18 +08:00
Vincent Wei
5782f3c40a add listenfd.c 2020-02-16 18:47:31 +08:00
Vincent Wei
0882bf8270 move USEC_1S and USEC_10MS to constants.h 2020-02-16 18:47:08 +08:00
Vincent Wei
f86e977e3d cleanup 2020-02-16 18:46:40 +08:00
Vincent Wei
9c2be6c69b cleanup 2020-02-16 18:45:51 +08:00
Vincent Wei
4ed95b12b3 tune code for OnIdle method of message queue 2020-02-16 18:45:33 +08:00
Vincent Wei
847ccdcab7 move USEC_1S and USEC_10MS from timer.h to constants.h 2020-02-16 18:44:39 +08:00
Vincent Wei
df10bf5ae0 call mg_GetMsgQueueForThisThread and mg_FreeMsgQueueForThisThread only for _MGHAVE_VIRTUAL_WINDOW 2020-02-16 18:44:08 +08:00
Vincent Wei
1babb4fcd5 call mg_GetMsgQueueForThisThread and mg_FreeMsgQueueForThisThread only for _MGHAVE_VIRTUAL_WINDOW 2020-02-16 18:43:45 +08:00
Vincent Wei
03f7321651 move listened fd sets to message queue and introduce the intrnal __mg_kernel_check_listen_fds funtion 2020-02-16 18:43:07 +08:00
Vincent Wei
26d976cc61 move listen fd APIs from minigui.h to window.h 2020-02-16 18:41:50 +08:00
Vincent Wei
1ce7bef76b move listen fd APIs to window.h 2020-02-16 18:41:20 +08:00
Vincent Wei
e1a932c04c check poll, select, and sys/select.h 2020-02-16 18:40:55 +08:00
Vincent Wei
608dade15f move from misc/ to kernel/; tune code for virtual window and listen fd API 2020-02-16 18:40:21 +08:00
Vincent Wei
786f9f90a0 move timer slots to message queue and tune code. now we allocate timer slots per thread, and manage the time slots in message queue 2020-02-16 10:30:37 +08:00
Vincent Wei
2727e0c2db tune code for virtual window 2020-02-15 23:02:51 +08:00
Vincent Wei
a12b75cd1b tune code for virtual window 2020-02-15 23:01:27 +08:00
Vincent Wei
59677752a7 tune code for virtual window 2020-02-15 22:53:08 +08:00
Vincent Wei
0ee62da119 tune code for virtual window 2020-02-15 22:51:56 +08:00
Vincent Wei
9d21d8a549 tune MainWindowThreadCleanup and MainWindowCleanup 2020-02-15 22:50:43 +08:00
Vincent Wei
f1f49032b9 tune code for virtual window; rename pMessages -> pMsgQueue 2020-02-15 18:22:48 +08:00
Vincent Wei
c5df42a44b implement CreateThreadForMessaging, GetThreadByWindow, CreateVirtualWindow, DestroyVirtualWindow, and VirtualWindowCleanup; move GetMainWinThread from desktop-ths.c to window.c 2020-02-15 18:22:14 +08:00
Vincent Wei
7f7b769660 tune for virtual window 2020-02-15 18:20:20 +08:00
Vincent Wei
f7dd21c9cb tune and cleanup 2020-02-15 12:44:54 +08:00
Vincent Wei
ca01773775 description words for virtual window; declare CreateThreadForMessaging, GetThreadByWindow, and VirtualWindowCleanup 2020-02-15 12:44:23 +08:00
Vincent Wei
32d5aa068b make --enable-virtualwindow available for standalone runmode 2020-02-15 12:40:45 +08:00
Vincent Wei
3b639d59d7 cleanup 2020-02-14 22:43:13 +08:00
Vincent Wei
0b3450bf97 move mg_InitMsgQueueThisThread, mg_FreeMsgQueueThisThread, and __mg_threadinfo_key to kernel/message.c 2020-02-14 22:41:22 +08:00
Vincent Wei
aadcdfca83 tune WS_EX_WINTYPE_XXX to avoid conflict with WS_EX_INTERAL_MASK; declare CreateVirtualWindow and DestroyVirtuWindow; tune some description word 2020-02-14 22:39:53 +08:00
Vincent Wei
0b0a50791b tune VIRTWIN, MAINWIN, and MSGQUEUE structures 2020-02-14 22:37:44 +08:00