Changes in uspace/lib/display/src/display.c [5d380b6:8279aab] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/display/src/display.c
r5d380b6 r8279aab 1 1 /* 2 * Copyright (c) 202 3Jiri Svoboda2 * Copyright (c) 2025 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 138 138 } 139 139 140 /* 141 * Lock display. 142 * 143 * While display is locked, display event handlers will not be called. 144 * 145 * @param display Display 146 */ 147 void display_lock(display_t *display) 148 { 149 fibril_mutex_lock(&display->lock); 150 } 151 152 /* 153 * Unlock display. 154 * 155 * @param display Display 156 */ 157 void display_unlock(display_t *display) 158 { 159 fibril_mutex_unlock(&display->lock); 160 } 161 140 162 /** Initialize window parameters structure. 141 163 * … … 700 722 display_wnd_ev_t event; 701 723 724 display_lock(display); 725 702 726 while (true) { 703 fibril_mutex_lock(&display->lock);704 705 727 if (display->sess != NULL) 706 728 rc = display_get_event(display, &window, &event); 707 729 else 708 730 rc = ENOENT; 709 710 fibril_mutex_unlock(&display->lock);711 731 712 732 if (rc != EOK) … … 752 772 } 753 773 774 display_unlock(display); 754 775 async_answer_0(icall, EOK); 755 776 }
Note:
See TracChangeset
for help on using the changeset viewer.