Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset be73793 in mainline


Ignore:
Timestamp:
2012-07-16T16:12:11Z (10 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial
Children:
3ab9de0
Parents:
01b8c2e4
Message:

Make logger runnable again

Location:
uspace
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/io/log.c

    r01b8c2e4 rbe73793  
    106106static void cannot_use_level_changed_monitor(void)
    107107{
    108         assert(false && "not implemented yet");
     108        fibril_rwlock_write_lock(&current_observed_level_lock);
     109        current_observed_level = LVL_LIMIT;
     110        fibril_rwlock_write_unlock(&current_observed_level_lock);
    109111}
    110112
  • uspace/srv/logger/namespace.c

    r01b8c2e4 rbe73793  
    109109
    110110        fibril_mutex_initialize(&namespace->guard);
     111        fibril_condvar_initialize(&namespace->reader_appeared_cv);
    111112        prodcons_initialize(&namespace->messages);
    112113        namespace->has_reader = false;
Note: See TracChangeset for help on using the changeset viewer.