Changeset 1153f0c in rtems-libbsd


Ignore:
Timestamp:
12/05/13 13:03:51 (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, 5-freebsd-12, 6-freebsd-12, freebsd-9.3, master
Children:
410e305
Parents:
5084ad8
git-author:
Sebastian Huber <sebastian.huber@…> (12/05/13 13:03:51)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/16/13 14:34:46)
Message:

rwlock01: Do not print in the worker task

The worker task must not block on the console device shared with the
master task.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuite/rwlock01/test_main.c

    r5084ad8 r1153f0c  
    8989        struct rwlock *rw = &ctx->rw;
    9090
    91         puts("worker ready");
    92 
    9391        while (true) {
    9492                rtems_status_code sc;
     
    104102
    105103                if ((events & EVENT_RLOCK) != 0) {
    106                         puts("worker: rw_rlock");
    107 
    108104                        rw_rlock(rw);
    109105                        ctx->done = true;
     
    111107
    112108                if ((events & EVENT_WLOCK) != 0) {
    113                         puts("worker: rw_wlock");
    114 
    115109                        rw_wlock(rw);
    116110                        ctx->done = true;
     
    118112
    119113                if ((events & EVENT_TRY_RLOCK) != 0) {
    120                         puts("worker: rw_try_rlock");
    121 
    122114                        ctx->rv = rw_try_rlock(rw);
    123115                        ctx->done = true;
     
    125117
    126118                if ((events & EVENT_TRY_WLOCK) != 0) {
    127                         puts("worker: rw_try_wlock");
    128 
    129119                        ctx->rv = rw_try_wlock(rw);
    130120                        ctx->done = true;
     
    132122
    133123                if ((events & EVENT_UNLOCK) != 0) {
    134                         puts("worker: rw_unlock");
    135 
    136124                        rw_unlock(rw);
    137125                        ctx->done = true;
     
    139127
    140128                if ((events & EVENT_SLEEP) != 0) {
    141                         puts("worker: rw_sleep");
    142 
    143129                        ctx->rv = rw_sleep(ctx, rw, 0, "worker", ctx->timo);
    144130                        ctx->done = true;
Note: See TracChangeset for help on using the changeset viewer.