Commit Graph

5303 Commits

Author SHA1 Message Date
Marc-André Moreau
7be92579b2 channels/rail: start refactoring 2013-10-14 23:16:40 -04:00
Marc-André Moreau
3880640132 libfreerdp-client: add channel event handlers for static virtual channels 2013-10-14 21:14:05 -04:00
Marc-André Moreau
69345954b8 libfreerdp-core: fix decoupling of rdpSettings* from rdpContext* 2013-10-12 22:58:09 -04:00
Marc-André Moreau
59eccac4e7 libfreerdp-client: refactor and decouple rdpSettings* from client context 2013-10-12 21:07:12 -04:00
Marc-André Moreau
b70ecbbf62 libfreerdp-core: decouple initialization of rdpSettings from freerdp* instance 2013-10-12 18:20:25 -04:00
Marc-André Moreau
53bdd952bf channels/rail: add new debug output 2013-10-11 17:36:34 -04:00
Marc-André Moreau
11109b00e9 libfreerdp-rail: refactor and update RAIL code 2013-10-11 17:09:36 -04:00
Marc-André Moreau
3fe3cdf876 libfreerdp-core: extend OpenSSL TSG BIO 2013-10-11 15:27:22 -04:00
Marc-André Moreau
f0fe2a2c12 Merge pull request #1543 from nfedera/fix-2013-10-11-01
winpr: greatly improved NtCurrentTeb performance
2013-10-11 11:48:24 -07:00
Norbert Federa
6f9a8dbc1e winpr: greatly improved NtCurrentTeb performance
Use pthread_setspecific/pthread_getspecific to store/retrieve the thread
environment block (TEB). Use pthread_once to trigger the creation of that
data from within NtCurrentTeb.
This allows us to get rid of the process environment block stuff which
was only used to provide serialized access to a thread table in order to
retrieve the TEB.

NtCurrentTeb is currently only as a per-thread storage location for the
last error value used by SetLastError and GetLastError.

Also made the TestErrorSetLastError CTest a bit more demanding.
It makes sure the 4 threads run for at least 2 seconds.
Each thread constantly calls SetLastError with a random value and checks
if GetLastError returns the same value again. The total amount of
these iterations is calculated in order to measure the performance.

This change increases the NtCurrentTeb performance by roughly 50% on
linux and by several thousand percent (yes) on Mac OS X.

Thanks for watching.
2013-10-11 19:34:23 +02:00
Marc-André Moreau
08eadc2ee3 libfreerdp-core: start implement TSG OpenSSL BIO 2013-10-11 06:12:50 -04:00
Marc-André Moreau
c058095251 libfreerdp-core: cleanup TS Gateway code 2013-10-11 05:07:33 -04:00
Marc-André Moreau
7dd95b9587 libwinpr-crypto: improve Schannel unit test 2013-10-11 04:01:07 -04:00
Marc-André Moreau
0dd5788266 libfreerdp-core: minor TS Gateway fixes 2013-10-11 02:10:02 -04:00
Marc-André Moreau
a24d31be31 libfreerdp-core: refactor and add new WLog debug output for graphical orders 2013-10-10 13:00:04 -04:00
Marc-André Moreau
7a7c967425 libfreerdp-rail: cleanup RAIL code 2013-10-09 22:38:26 -04:00
Marc-André Moreau
3d7d4c50db libwinpr-utils: fix IPv4 checksum and TCP sequence numbers with wlog packet messages 2013-10-09 16:37:45 -04:00
Marc-André Moreau
90b90ad496 libwinpr-utils: improve quality of data for reconstructed IP headers 2013-10-09 15:11:56 -04:00
Marc-André Moreau
7bdb63ad89 libwinpr-utils: initial wlog packet header reconstruction 2013-10-09 14:23:38 -04:00
Marc-André Moreau
166e3fbf2d libwinpr-utils: start reconstructing IP headers for wlog packet message 2013-10-09 13:37:53 -04:00
Marc-André Moreau
a3f0f4c8dc libfreerdp-core: started logging packets to pcap file 2013-10-08 23:43:57 -04:00
Marc-André Moreau
684db03578 libwinpr-utils: start implement wlog packet appender 2013-10-08 23:18:59 -04:00
Marc-André Moreau
07afc88878 libwinpr-utils: add some configurability to wlog with environment variables 2013-10-08 22:35:14 -04:00
Marc-André Moreau
a0c0d7b998 libfreerdp-core: added debug output for surface commands 2013-10-08 20:40:58 -04:00
Marc-André Moreau
ac2444ab50 libfreerdp-codec: start making use of WLog for RemoteFX 2013-10-08 20:17:57 -04:00
Marc-André Moreau
a87e7deac4 libwinpr-utils: fix wlog build warnings 2013-10-08 19:39:03 -04:00
Marc-André Moreau
0de4d7924c Merge branch 'master' of github.com:awakecoding/FreeRDP 2013-10-08 19:17:51 -04:00
Marc-André Moreau
c96207fd69 Merge pull request #10 from MartinHaimberger/fixLogWarnings
fixed warining fo not constant log format string
2013-10-08 15:54:32 -07:00
Marc-André Moreau
85e6729854 Merge pull request #9 from hardening/awakecoding
Fix function prototype
2013-10-08 15:54:21 -07:00
Marc-André Moreau
1ee2fa73cf Merge pull request #8 from MartinHaimberger/wlogfix
fixed memory leak in wlog
2013-10-08 15:54:09 -07:00
Marc-André Moreau
353816e050 Merge pull request #6 from MartinHaimberger/loglevel
Loglevel
2013-10-08 15:53:54 -07:00
Benoît LeBlanc
e15636a610 code cleanup: move coord conversion from individual mouse events to function mf_scale_mouse_event 2013-10-08 15:03:05 -04:00
Marc-André Moreau
fdae43aafc mfreerdp: fix keyboard mapping for toggle keys 2013-10-07 16:43:23 -04:00
Benoît LeBlanc
46c06b5081 converted function wf_on_param_change to new PubSub_ system. The function was not called anymore, which caused a refresh problem when changing Smart Sizing during a session. 2013-10-07 13:46:13 -04:00
Bernhard Miklautz
57d295441f windows build: use different .def file for xp
Use different def file for windows < 5.1.
2013-10-07 15:03:50 +02:00
Bernhard Miklautz
23f33ca20e windows build: ignore generated files (nmake) 2013-10-07 15:03:13 +02:00
Martin Fleisz
cca9774c5e Merge pull request #1534 from bmiklautz/iosbuild
IOS build improvements
2013-10-07 03:29:12 -07:00
Martin Haimberger
7d35c1adaf fixed warining fo not constant log format string 2013-10-07 02:20:01 -07:00
Bernhard Miklautz
fa1bc1f2fe ios build: updated README.ios 2013-10-06 13:47:52 +02:00
Bernhard Miklautz
38883e5ecd ios ssl build: support for user specified sdks
To build against a specific (not auto detected) SDK version set
USER_OS_SDK and/or USER_SIM_SDK at the top of the script.
2013-10-06 13:47:21 +02:00
Bernhard Miklautz
27d8844fab ios ssl build: do sdk detection before download 2013-10-06 12:42:54 +02:00
Bernhard Miklautz
e30d6109bc Cleaned up and improved iOS openssl build script
* Added support for optional build directory (first argument)
* Automatically detect iOS/iPhoneSimulator SDKs (oldest SDK found is used)
2013-10-05 23:53:53 +02:00
Bernhard Miklautz
f30d3ac3a1 ios build: added option to set signing certificate
Code signing certificate can be set with with cmake option CODE_SIGN_IDENTITY.
Like -DCODE_SIGN_IDENTITY="signing identity"
2013-10-05 22:00:37 +02:00
Bernhard Miklautz
6d2142182d ios simulator build: set CMAKE_OSX_SYSROOT
When building for iphone simulator it is required to set the CMAKE_OSX_SYSROOT
to "iphonesimulator" otherwise command line builds (with cmake --build) will fail.
2013-10-05 21:47:03 +02:00
Bernhard Miklautz
7b706ba840 ios build: fixed toolchain for cmake 2.8.10 2013-10-05 21:45:41 +02:00
Bernhard Miklautz
e6f3cd7dff build: link winpr-synch against winpr-sysinfo 2013-10-05 14:09:04 +02:00
Hardening
c37c86601d Fix function prototype
This patch fixes the prototypes with warnings enabled.
2013-10-04 23:07:31 +02:00
Marc-André Moreau
e1ed2aaa94 Merge branch 'master' of github.com:mrthebunny/FreeRDP 2013-10-04 11:34:28 -04:00
Marc-André Moreau
97447420c9 Merge branch 'master' of github.com:awakecoding/FreeRDP 2013-10-04 11:34:00 -04:00
Marc-André Moreau
e37981e57c libwinpr-utils: improved binary appender 2013-10-04 11:33:49 -04:00