Print this page
5042 stop using deprecated atomic functions

@@ -47,11 +47,11 @@
         do {
                 oldval = *count_p;
                 newval = oldval - n;
                 if (oldval <= n)
                         return (0);             /* no resources left    */
-        } while (cas32(count_p, oldval, newval) != oldval);
+        } while (atomic_cas_32(count_p, oldval, newval) != oldval);
 
         return (newval);
 }
 
 /*

@@ -68,11 +68,11 @@
 
         /* ATOMICALLY */
         do {
                 oldval = *count_p;
                 newval = oldval + n;
-        } while (cas32(count_p, oldval, newval) != oldval);
+        } while (atomic_cas_32(count_p, oldval, newval) != oldval);
 }
 
 /*
  * Callback code invoked from STREAMs when the recv data buffer is free
  * for recycling.