Initial revision
This commit is contained in:
parent
ed7c8e8d02
commit
76193d7cb0
223 changed files with 32479 additions and 0 deletions
13
src/libthread/ref.c
Normal file
13
src/libthread/ref.c
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#include "threadimpl.h"
|
||||
|
||||
void
|
||||
incref(Ref *r)
|
||||
{
|
||||
_xinc(&r->ref);
|
||||
}
|
||||
|
||||
long
|
||||
decref(Ref *r)
|
||||
{
|
||||
return _xdec(&r->ref);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue