summary refs log tree commit diff stats
path: root/po/nl.po
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-09-19 17:52:17 -0400
committerTingPing <tingping@tingping.se>2013-09-19 17:52:17 -0400
commitf6ba2741345fbab44947e9f81ff0ea543aeba030 (patch)
tree9e83c2cb6457b4968169283421d77aea497c5a91 /po/nl.po
parentcd825ac735303393f2b36bfcd3dc99e1cf93b1db (diff)
Add fullscreen to to view menu
Diffsta
#include <io.h>
#include <fcntl.h>
#include "thread.h"

thread *
thread_new (void)
{
	thread *th;

	th = calloc (1, sizeof (*th));
	if (!th)
	{
		return NULL;
	}

	if (_pipe (th->pipe_fd, 4096, _O_BINARY) == -1)
	{
		free (th);
		return NULL;
	}

	return th;
}

int
thread_start (thread *th, void *(*start_routine)(void *), void *arg)
{
	DWORD id;

	CloseHandle (CreateThread (NULL, 0, (LPTHREAD_START_ROUTINE)start_routine, arg, 0, (DWORD *)&id));
	th->threadid = id;

	return 1;
}