Commit Graph

4788 Commits

Author SHA1 Message Date
Marc-André Moreau
a9c9d87849 Merge branch 'master' of github.com:awakecoding/FreeRDP 2013-08-09 21:23:29 -04:00
Marc-André Moreau
bb30ceb006 mfreerdp: cleanup 2013-08-09 21:23:08 -04:00
Marc-André Moreau
c998f0b173 Merge pull request #1413 from nfedera/fix-2013-08-10-01
codec/rfx: fix multithreaded encoder
2013-08-09 15:53:08 -07:00
Norbert Federa
ccc5d1b279 codec/rfx: fix multithreaded encoder
Some component of the encoder chain (I suspect the rlgr encoder) expects
the output buffer to be zeroed. The multithreaded RemoteFX encoder uses
wStreams from the StreamPool which are reused and not zeroed out of
course. For now, in order to prevent data corruption we clear the stream.
2013-08-10 00:28:35 +02:00
Armin Novak
a57f1302f4 Fixed invalid package size allocation and calculation in cliprdr_process_format_list_event
Enabled and fixed error handling in cliprdr_process_format_list_response
2013-08-09 16:23:00 +02:00
Armin Novak
ebb36d4019 Merge branch 'master' of https://github.com/FreeRDP/FreeRDP 2013-08-09 16:17:22 +02:00
Marc-André Moreau
d9a4b350af libfreerdp-core: fix leak in listener 2013-08-08 21:24:07 -04:00
Marc-André Moreau
f010a4d360 Merge pull request #1409 from alexpilotti/master
Fixes libwinpr build issue on Windows
2013-08-08 16:53:12 -07:00
Alessandro Pilotti
644e0efa76 Fixes libwinpr build issue on Windows
Adds conditional statements in file.c to solve a Posix portability
issue on Windows introduced with the following commit:

913d532e0d
2013-08-09 02:45:31 +03:00
Marc-André Moreau
2847c8819e mfreerdp: fix out of source build 2013-08-08 16:38:50 -04:00
Marc-André Moreau
b164453d75 mfreerdp: fix 32-bit and universal build 2013-08-08 16:10:23 -04:00
Marc-André Moreau
1d1d04149c mfreerdp: cleanup makefiles 2013-08-08 15:49:24 -04:00
Norbert Federa
4f5522f099 Merge pull request #1406 from bmiklautz/android_toolchain
android: updated toolchain file
2013-08-08 09:59:12 -07:00
Bernhard Miklautz
553f7c24f7 android: updated toolchain file
* support for ndk version r8d+
* improved x86_64 host machine support
* support non-release NDK layouts
2013-08-08 16:23:11 +02:00
Armin Novak
44c80c29cc Fixed #1404, using WaitForMultipleObjects now. 2013-08-08 14:46:21 +02:00
Armin Novak
ca215eea69 Merge branch 'master' of https://github.com/FreeRDP/FreeRDP 2013-08-08 14:43:42 +02:00
Bernhard Miklautz
558d40b18c Fixed typo 2013-08-08 12:41:04 +02:00
Armin Novak
1925939e8f Merge branch 'master' of https://github.com/FreeRDP/FreeRDP 2013-08-08 08:41:13 +02:00
Marc-André Moreau
f1c0ffb130 libfreerdp-core: fix sending of bitmap updates 2013-08-07 23:46:17 -04:00
Marc-André Moreau
8ca74a2766 libfreerdp-core: add support for server-side bitmap updates 2013-08-07 21:47:03 -04:00
Marc-André Moreau
0e8dfb9e77 Merge pull request #1390 from awakecoding/master
Server-side core fixes, WinPR waitable timers & named pipes, Multitouch fixes
2013-08-07 13:39:29 -07:00
Marc-André Moreau
e31b9b7709 libwinpr-pipe: add missing link dependency 2013-08-07 16:00:21 -04:00
Marc-André Moreau
a9bf93ed6a libwinpr-pipe: add missing link dependencies for test code 2013-08-07 15:56:05 -04:00
Marc-André Moreau
34f9985add freerdp: merge with master 2013-08-07 15:48:57 -04:00
Marc-André Moreau
ebee0d3f21 Merge pull request #1402 from nfedera/fix-2013-08-07-03
codec/rfx: added multithreaded encoder
2013-08-07 12:36:19 -07:00
Marc-André Moreau
331933635c Merge pull request #1401 from nfedera/fix-2013-08-07-02
libwinpr-utils: Use criticalsection with spincount
2013-08-07 12:35:46 -07:00
Marc-André Moreau
ecad3aa416 Merge pull request #1397 from nfedera/fix-2013-08-07-01
libwinpr-sync: New complete critical section code
2013-08-07 12:35:06 -07:00
Norbert Federa
0d916527bc codec/rfx: added multithreaded encoder 2013-08-07 18:22:42 +02:00
Norbert Federa
3a58934eb2 libwinpr-utils: Use criticalsection with spincount
Use InitializeCriticalSectionAndSpinCount instead of IntializeCriticalSection.
Using spin counts for critical sections of short duration enables the calling
thread to avoid the wait operation in most situations which can dramatically
improve the overall performance on multiprocessor systems.

On Linux this change has no effect because the new winpr critical section
implementation does not use the SpinCount field under Linux because the NPTL
synchronization primitives are implemented using the extremely performant
futex system calls which have this magic already built in.

However, on Mac OS X this change improved the overall performance of the
multithreaded RemoteFX decoder by 25 percent.

I've used a SpinCount of 4000 which avoided 99 percent of the wait calls.
This value is also used by Microsoft's heap manager for its per-heap
critical sections.

Note: This change requires pull request #1397 to be merged.
2013-08-07 18:16:01 +02:00
Norbert Federa
2b25b4a520 libwinpr-sync: New complete critical section code
- Complete implementation including recursion support
- Added an intensive ctest (TestSynchCritical)
- Struct members are used exactly as Windows does it internally:
  LockCount starts at -1, RecursionCount at 0
- Same performance optimizations as internally on Windows:
    - Fast lock acquisition path using CAS -> SpinCount -> wait
    - SpinCount automatically disabled on uniprocessor systems
- On Linux SpinCount is disabled because it provided no advantage over NPTL/futex in all tests

Support for CRITICAL_SECTION's DebugInfo is not yet included (but trivial to add).
2013-08-07 10:20:04 +02:00
Armin Novak
d8bd4397e9 Added generated documentation files to gitignore. 2013-08-07 09:19:16 +02:00
richterger
505facbb6f Fix off by one problem in StreamPool allocation 2013-08-07 08:01:33 +02:00
richterger
3246dcff22 Fixed memory corruption problems within client redirect
- set freed pointers to NULL to avoid double free
- realloc mppc to cleanly restart compression
- avoid releaseing StreamPool from already freed transport after client redirect
2013-08-07 07:58:34 +02:00
Armin Novak
9b95c55574 Replaced xmlto with xsltproc to word around a bug preventing manpages
to be build, when there are spaces in the build path.
2013-08-06 15:02:36 +02:00
Armin Novak
ef574c0fcc Added missing dependency for custom command generating manpage. 2013-08-06 12:40:48 +02:00
Armin Novak
6c676e8795 Removed placeholder for channel documentation until it is available. 2013-08-06 12:25:38 +02:00
Armin Novak
68511fc7d4 Added better formatting of commands in manpage. 2013-08-06 12:23:31 +02:00
Armin Novak
21d7e433c9 Merge remote-tracking branch 'upstream/master' 2013-08-06 11:58:21 +02:00
Armin Novak
be37b91e3d Minor adjustments in naming. 2013-08-06 11:54:37 +02:00
Armin Novak
e80effa2a8 Added examples with short description to manpage.
Added placeholder for channel documentation.
2013-08-06 11:54:37 +02:00
Armin Novak
38be366a67 Fixed generation of configure header, now replacing date fields
with current date.
Added CMake script to generate a variable containing the current
date.
Removed last argument (the terminating NULL element) from output.
2013-08-06 11:54:37 +02:00
Armin Novak
3fa1407c09 Removed extended text field. 2013-08-06 11:54:37 +02:00
Armin Novak
9295838f81 Added simple converter generating docbook XML from command line
argument struct.
Modified xfreerdp.1.xml to include generated documentation.
Modified CMake to regenerate manpages correctly using the generator.
2013-08-06 11:54:37 +02:00
Marc-André Moreau
7b80b19306 cmake: add FindPixman.cmake 2013-08-05 20:50:23 -04:00
Marc-André Moreau
13872f33bf libwinpr-utils: implement doubly-linked list 2013-08-05 17:29:14 -04:00
Vic Lee
21796ad73d libfreerdp-core/fastpath: fix memory leak when sending large packet. 2013-08-04 17:23:32 +08:00
Marc-André Moreau
190ed85a3d libwinpr-synch: add detection of timerfd support 2013-08-03 19:50:17 -04:00
Marc-André Moreau
9be33f83ea channels/rdpei: make use of critical section 2013-08-03 16:45:53 -04:00
Marc-André Moreau
ecc543d87d Merge branch 'master' of github.com:FreeRDP/FreeRDP into multitouch 2013-08-03 16:22:09 -04:00
Marc-André Moreau
dcd4cd9183 Merge pull request #1379 from nfedera/fix-2013-07-30-01
codec/rfx: removed unnecessary WaitForSingleObject
2013-08-03 13:20:17 -07:00