]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Tue, 4 Nov 2003 23:43:40 +0000 (23:43 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 4 Nov 2003 23:43:40 +0000 (23:43 +0000)
2003-11-04  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/pthread/bits/stdio-lock.h: Use lll_*lock instead of
lll_mutex_*lock macros to skip atomic operations on some archs.

nptl/ChangeLog
nptl/sysdeps/pthread/bits/stdio-lock.h
nptl/sysdeps/pthread/tst-timer.c

index beb3212529d24adb08a55347fe7f896d527ae004..9e52682111417f12e8e6dbebd34ec913a41a43fc 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-04  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/pthread/bits/stdio-lock.h: Use lll_*lock instead of
+       lll_mutex_*lock macros to skip atomic operations on some archs.
+
 2003-11-03  Ulrich Drepper  <drepper@redhat.com>
 
        * sysdeps/pthread/tst-timer.c (main): Initialize
index b084e91e40753bf772de5335c578993eaa54f107..cd64bc37e2a9ae62c4ae99fc4fe651222405b76e 100644 (file)
@@ -29,7 +29,7 @@
 
 typedef struct { int lock; int cnt; void *owner; } _IO_lock_t;
 
-#define _IO_lock_initializer { LLL_MUTEX_LOCK_INITIALIZER, 0, NULL }
+#define _IO_lock_initializer { LLL_LOCK_INITIALIZER, 0, NULL }
 
 #define _IO_lock_init(_name) \
   ((_name) = (_IO_lock_t) _IO_lock_initializer , 0)
@@ -42,7 +42,7 @@ typedef struct { int lock; int cnt; void *owner; } _IO_lock_t;
     void *__self = THREAD_SELF;                                                      \
     if ((_name).owner != __self)                                             \
       {                                                                              \
-        lll_mutex_lock ((_name).lock);                                       \
+        lll_lock ((_name).lock);                                             \
         (_name).owner = __self;                                                      \
       }                                                                              \
     ++(_name).cnt;                                                           \
@@ -54,7 +54,7 @@ typedef struct { int lock; int cnt; void *owner; } _IO_lock_t;
     void *__self = THREAD_SELF;                                                      \
     if ((_name).owner != __self)                                             \
       {                                                                              \
-        if (lll_mutex_trylock ((_name).lock) == 0)                           \
+        if (lll_trylock ((_name).lock) == 0)                                 \
           {                                                                  \
             (_name).owner = __self;                                          \
             (_name).cnt = 1;                                                 \
@@ -72,7 +72,7 @@ typedef struct { int lock; int cnt; void *owner; } _IO_lock_t;
     if (--(_name).cnt == 0)                                                  \
       {                                                                              \
         (_name).owner = NULL;                                                \
-        lll_mutex_unlock ((_name).lock);                                     \
+        lll_unlock ((_name).lock);                                           \
       }                                                                              \
   } while (0)
 
index f2577b75cd6eaf6542c238ffaf2a480f53d7f0c3..f19fe364bac7924754f6fbb49b8cfa7023b5ce57 100644 (file)
@@ -86,7 +86,7 @@ main (void)
   sigev2.sigev_notify_attributes = NULL;
   /* It is unnecessary to do the following but to set a good example
      we do it anyhow.  */
-  sigev2.sigev_value = 0;
+  sigev2.sigev_value.sival_ptr = NULL;
 
   setvbuf (stdout, 0, _IOLBF, 0);
 
This page took 0.06107 seconds and 5 git commands to generate.