Reindent server/core/thread.c
This commit is contained in:
@ -40,7 +40,7 @@
|
||||
void *
|
||||
thread_start(void (*entry)(void *), void *arg)
|
||||
{
|
||||
pthread_t thd;
|
||||
pthread_t thd;
|
||||
|
||||
if (pthread_create(&thd, NULL, (void *(*)(void *))entry, arg) != 0)
|
||||
{
|
||||
@ -57,7 +57,7 @@ pthread_t thd;
|
||||
void
|
||||
thread_wait(void *thd)
|
||||
{
|
||||
void *rval;
|
||||
void *rval;
|
||||
|
||||
pthread_join((pthread_t)thd, &rval);
|
||||
}
|
||||
@ -70,7 +70,7 @@ void *rval;
|
||||
void
|
||||
thread_millisleep(int ms)
|
||||
{
|
||||
struct timespec req;
|
||||
struct timespec req;
|
||||
|
||||
req.tv_sec = ms / 1000;
|
||||
req.tv_nsec = (ms % 1000) * 1000000;
|
||||
|
||||
Reference in New Issue
Block a user