Creating threads and sockets from within QEMU

260 Views Asked by At

I noticed that in QEMU 1.0.1 there were API functions like qemu_thread_create(), qemu_mutex_init() from qemu-thread.hetc as well as objects like QemuTcpServerSocket from qemu_socket.h.

What is the purpose of these API functions? Do you have to use them to avoid problems or are they just abstractions from the operating system?

In the recent QEMU versions, the QEMU socket and thread API functions seem to have changed. For QEMU 2.0 and higher, is it necessary to use the QEMU functions for thread and socket creation? Where can I find them?

My goal: I would like to write a dynamic library that is linked to the QEMU code. This library should be able to spwan a thread which opens a listening socket.

0

There are 0 best solutions below