Changes in uspace/lib/display/src/display.c [8279aab:5d380b6] in mainline
- File:
-
- 1 edited
-
uspace/lib/display/src/display.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/display/src/display.c
r8279aab r5d380b6 1 1 /* 2 * Copyright (c) 202 5Jiri Svoboda2 * Copyright (c) 2023 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 Display146 */147 void display_lock(display_t *display)148 {149 fibril_mutex_lock(&display->lock);150 }151 152 /*153 * Unlock display.154 *155 * @param display Display156 */157 void display_unlock(display_t *display)158 {159 fibril_mutex_unlock(&display->lock);160 }161 162 140 /** Initialize window parameters structure. 163 141 * … … 722 700 display_wnd_ev_t event; 723 701 724 display_lock(display);725 726 702 while (true) { 703 fibril_mutex_lock(&display->lock); 704 727 705 if (display->sess != NULL) 728 706 rc = display_get_event(display, &window, &event); 729 707 else 730 708 rc = ENOENT; 709 710 fibril_mutex_unlock(&display->lock); 731 711 732 712 if (rc != EOK) … … 772 752 } 773 753 774 display_unlock(display);775 754 async_answer_0(icall, EOK); 776 755 }
Note:
See TracChangeset
for help on using the changeset viewer.
