Changeset d73d992 in mainline for uspace/lib/c/generic/fibril_synch.c
- Timestamp:
- 2018-06-25T20:10:06Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3679f51a
- Parents:
- 0a0dff8
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-06-25 18:56:55)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-06-25 20:10:06)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/fibril_synch.c
r0a0dff8 rd73d992 45 45 #include <stdio.h> 46 46 #include "private/async.h" 47 #include "private/fibril.h" 47 48 48 49 static void optimize_execution_power(void) … … 201 202 wdata.fid = (fid_t) f; 202 203 wdata.wu_event.inlist = true; 203 f-> flags &= ~FIBRIL_WRITER;204 f->is_writer = false; 204 205 list_append(&wdata.wu_event.link, &frw->waiters); 205 206 check_for_deadlock(&frw->oi); … … 225 226 wdata.fid = (fid_t) f; 226 227 wdata.wu_event.inlist = true; 227 f-> flags |= FIBRIL_WRITER;228 f->is_writer = true; 228 229 list_append(&wdata.wu_event.link, &frw->waiters); 229 230 check_for_deadlock(&frw->oi); … … 276 277 f->waits_for = NULL; 277 278 278 if (f-> flags & FIBRIL_WRITER) {279 if (f->is_writer) { 279 280 if (frw->readers) 280 281 break;
Note:
See TracChangeset
for help on using the changeset viewer.