Skip to content

Commit

Permalink
htable: elaborated docs about sht_lock() and sht_unlock()
Browse files Browse the repository at this point in the history
(cherry picked from commit 44269cd)
  • Loading branch information
miconda committed Nov 11, 2014
1 parent 7e6a27a commit 69db8e6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions modules/htable/README
Expand Up @@ -672,7 +672,9 @@ sht_reset("ha$var(x)");

4.5. sht_lock(htable=>key)

Lock the slot in htable corespoding to the key item.
Lock the slot in htable corespoding to the key item. Note that the
locking is re-entrant for the process, therefore the lock and unlock
should be done by the same process.

This function can be used from ANY_ROUTE.

Expand All @@ -683,7 +685,9 @@ sht_lock("ha=>test");

4.6. sht_unlock(htable=>key)

Unlock the slot in htable corespoding to the key item.
Unlock the slot in htable corespoding to the key item. Note that the
locking is re-entrant for the process, therefore the lock and unlock
should be done by the same process.

This function can be used from ANY_ROUTE.

Expand Down
8 changes: 6 additions & 2 deletions modules/htable/doc/htable_admin.xml
Expand Up @@ -735,7 +735,9 @@ sht_reset("ha$var(x)");
<function moreinfo="none">sht_lock(htable=>key)</function>
</title>
<para>
Lock the slot in htable corespoding to the key item.
Lock the slot in htable corespoding to the key item. Note that
the locking is re-entrant for the process, therefore the lock
and unlock should be done by the same process.
</para>
<para>
This function can be used from ANY_ROUTE.
Expand All @@ -754,7 +756,9 @@ sht_lock("ha=>test");
<function moreinfo="none">sht_unlock(htable=>key)</function>
</title>
<para>
Unlock the slot in htable corespoding to the key item.
Unlock the slot in htable corespoding to the key item. Note that
the locking is re-entrant for the process, therefore the lock
and unlock should be done by the same process.
</para>
<para>
This function can be used from ANY_ROUTE.
Expand Down

0 comments on commit 69db8e6

Please sign in to comment.