libporty - the bgtask package

The purpose of the bgtask package is to provide as much functionality as needed for some of the high level packages of libporty for running some tasks in the background. On platforms with posix threads, background tasks are threads; on windows, native threading is used; on other platforms without posix threads, fork() is used.

At the moment there are no plans to extend the IPC capabilities of the package beyond starting background tasks. Communication between threads are done using bidirectional local sockets between them.

Background tasks should simply return from the entry function when they end. Programmer should not assume shared memory between parent process and/or background tasks.

libporty/bgtask/bgtask.h

call level summary
P_bgtask_create low create a new background task