summaryrefslogtreecommitdiff
path: root/pjlib/include/pj/os.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2005-11-01 21:46:17 +0000
committerBenny Prijono <bennylp@teluu.com>2005-11-01 21:46:17 +0000
commit2659094addd65fee3d26bc2fe21f4b42d825bdfb (patch)
tree373c7a58cefb6d06b9bdcb842628c3cfec2fafbe /pjlib/include/pj/os.h
parent7520eb2058c85109a0b137b0d0f0487a149c9a0c (diff)
Changed atomic interface and fixed bugs in echo test client
git-svn-id: http://svn.pjsip.org/repos/pjproject/main@5 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include/pj/os.h')
-rw-r--r--pjlib/include/pj/os.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/pjlib/include/pj/os.h b/pjlib/include/pj/os.h
index 7b91b7ac..536992f2 100644
--- a/pjlib/include/pj/os.h
+++ b/pjlib/include/pj/os.h
@@ -304,11 +304,9 @@ PJ_DECL(pj_status_t) pj_atomic_destroy( pj_atomic_t *atomic_var );
*
* @param atomic_var the atomic variable.
* @param value value to be set to the variable.
- *
- * @return the previous value of the variable.
*/
-PJ_DECL(pj_atomic_value_t) pj_atomic_set(pj_atomic_t *atomic_var,
- pj_atomic_value_t value);
+PJ_DECL(void) pj_atomic_set( pj_atomic_t *atomic_var,
+ pj_atomic_value_t value);
/**
* Get the value of an atomic type.
@@ -323,19 +321,24 @@ PJ_DECL(pj_atomic_value_t) pj_atomic_get(pj_atomic_t *atomic_var);
* Increment the value of an atomic type.
*
* @param atomic_var the atomic variable.
- *
- * @return the result.
*/
-PJ_DECL(pj_atomic_value_t) pj_atomic_inc(pj_atomic_t *atomic_var);
+PJ_DECL(void) pj_atomic_inc(pj_atomic_t *atomic_var);
/**
* Decrement the value of an atomic type.
*
* @param atomic_var the atomic variable.
+ */
+PJ_DECL(void) pj_atomic_dec(pj_atomic_t *atomic_var);
+
+/**
+ * Add a value to an atomic type.
*
- * @return the result.
+ * @param atomic_var The atomic variable.
+ * @param value Value to be added.
*/
-PJ_DECL(pj_atomic_value_t) pj_atomic_dec(pj_atomic_t *atomic_var);
+PJ_DECL(void) pj_atomic_add( pj_atomic_t *atomic_var,
+ pj_atomic_value_t value);
/**
* @}