Subversion Repositories HelenOS-historic

Rev

Rev 1104 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1104 Rev 1658
Line 42... Line 42...
42
static void writer(void *arg);
42
static void writer(void *arg);
43
static void failed(void);
43
static void failed(void);
44
 
44
 
45
void writer(void *arg)
45
void writer(void *arg)
46
{
46
{
-
 
47
 
-
 
48
    thread_detach(THREAD);
-
 
49
 
47
    printf("Trying to lock rwlock for writing....\n");    
50
    printf("Trying to lock rwlock for writing....\n");    
48
 
51
 
49
    rwlock_write_lock(&rwlock);
52
    rwlock_write_lock(&rwlock);
50
    rwlock_write_unlock(&rwlock);
53
    rwlock_write_unlock(&rwlock);
51
   
54