On Mon, Oct 1, 2018 at 9:33 AM Alexandr via FreeRDP-devel
<freerdp-devel@lists.sourceforge.net> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> Hi all.
> Is it possible without modifications to libfreerdp code make it single
> threaded, and implement loop inside my application and not in
> libfreerdp ?
>
> does any exaples exists ?

Technically no, because the desktop decoding creates $NCPU threads
automatically. But if you ignore those threads then yes it is possible
to handle input and FreeRDP events on the same thread. The biggest
problem is that as soon as you do this you typically lose the ability
to use WinPR in a portable fashion. Some work getting arbitrary OS
primitives into a WinPR equivalent or vice versa would be very
helpful.

If you just want to develop for e.g. Linux this might be fine, pull
out the underlying file descriptors and use POSIX functions with them.
In my case I want it to run on more than just Linux so using WinPR is
preferable (though it is looking like it will be easiest to use WinPR
but run on Cygwin for Windows, so I really want to fix stuff, but
don't know the best way yet).

I am also trying to figure out how to best take control of the frame
decoding to limit the amount of CPU it takes. For my usecase the local
RDP client session can be headless as long as the server side still
forces rendering.

Cheers,
    R0b0t1


_______________________________________________
FreeRDP-devel mailing list
FreeRDP-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel

Reply via email to