summary refs log tree commit diff stats
path: root/src/fe-text/fe-text.c
#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;
}
AgeCommit message (Collapse)Author
2014-02-04Add /getbool commandTingPing
2014-02-04osx: Set Menlo as default fontTingPing
This moves the find_font function to the front ends since it depends on pango and cairo
2014-01-30Now make_ping_time() in common/util.c returns the time in milliseconds insteadDiogo Sousa
of microseconds. In fe_set_lag(serv, lag) the lag argument is now in milliseconds as well. Fixes #758.
2013-11-02Fix invalid timestamps crashing on WindowsTingPing
2013-10-22Open channel list window on /listFarow
msg'> 2012-11-04Eliminate warnings due to missing includesBerke Viktor 2012-11-03Initial commit for utf8 everywhere.Arnavion 2012-10-28More polishing for the About dialogBerke Viktor 2012-10-24A lot more rebrandingBerke Viktor 2012-10-24Fix fe-text compilation - it still segfaults thoughBerke Viktor 2012-10-22Variable cleanup for the restBerke Viktor 2012-10-22Variable cleanup for input_*Berke Viktor 2012-10-22Variable cleanup for gui_*Berke Viktor 2012-10-13Some HexChat-Text rebranding work leftBerke Viktor 2012-10-13Get rid of auto_save, we always want to saveBerke Viktor 2012-07-13Another bunch of rebranding stuffBerke Viktor 2011-02-28add wdk changes to named branchberkeviktor@aol.com 2011-02-24add xchat r1489berkeviktor@aol.com