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:
@@ -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[])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user