Changeset 3cf862f in mainline for uspace/srv/logger/logger.h


Ignore:
Timestamp:
2012-08-17T10:41:54Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f5da671
Parents:
bf9ac4e8
Message:

Add basic locking to logger

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/logger/logger.h

    rbf9ac4e8 r3cf862f  
    5757        link_t link;
    5858
     59        fibril_mutex_t guard;
     60
    5961        char *name;
    6062        char *full_name;
     
    6466};
    6567
    66 logger_log_t *find_log_by_name(const char *name);
    67 logger_log_t *find_or_create_log(const char *name, sysarg_t parent);
    68 logger_log_t *find_log_by_id(sysarg_t);
     68logger_log_t *find_log_by_name_and_acquire(const char *name);
     69logger_log_t *find_or_create_log_and_acquire(const char *name, sysarg_t parent);
     70logger_log_t *find_log_by_id_and_acquire(sysarg_t);
    6971bool shall_log_message(logger_log_t *, log_level_t);
     72void log_release(logger_log_t *);
    7073
    7174log_level_t get_default_logging_level(void);
Note: See TracChangeset for help on using the changeset viewer.