1
0
mirror of https://github.com/aap/pdp6.git synced 2026-04-20 09:36:45 +00:00

made emulator use less cpu

This commit is contained in:
aap
2021-04-15 20:35:15 +02:00
parent e000f5b5a7
commit d50b59c325
10 changed files with 33 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
#define _GNU_SOURCE // TODO, make portable
#include "threading.h"
#include <assert.h>
@@ -208,6 +209,13 @@ threadwait(int id)
pthread_join(gethandle(id), nil);
}
void
threadname(char *name)
{
// TODO: make portable
pthread_setname_np(pthread_self(), name);
}
int
main(int argc, char *argv[])
{