Changeset 1dec7cb in mainline for uspace/srv/logger/writer.c


Ignore:
Timestamp:
2012-08-23T18:25:06Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
92e963f
Parents:
4b640a2
Message:

Use lock/unlock naming

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/logger/writer.c

    r4b640a2 r1dec7cb  
    5656                return NULL;
    5757
    58         logger_log_t *log = find_or_create_log_and_acquire(name, parent);
     58        logger_log_t *log = find_or_create_log_and_lock(name, parent);
    5959
    6060        free(name);
     
    6565static int handle_receive_message(sysarg_t log_id, sysarg_t level)
    6666{
    67         logger_log_t *log = find_log_by_id_and_acquire(log_id);
     67        logger_log_t *log = find_log_by_id_and_lock(log_id);
    6868        if (log == NULL)
    6969                return ENOENT;
     
    8787
    8888leave:
    89         log_release(log);
     89        log_unlock(log);
    9090        free(message);
    9191
     
    114114                                break;
    115115                        }
    116                         log_release(log);
     116                        log_unlock(log);
    117117                        async_answer_1(callid, EOK, (sysarg_t) log);
    118118                        break;
Note: See TracChangeset for help on using the changeset viewer.