Reindent server/core/thread.c

This commit is contained in:
Johan Wikman
2015-11-30 20:17:43 +02:00
parent a95be21266
commit 8bbc3e8086
2 changed files with 25 additions and 25 deletions

View File

@ -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;