| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* sverker/win-compile-warnings/OTP-15800:
odbc: Fix windows compiler warnings
wx: Fix windows compiler warnings
os_mon: Fix windows compiler warnings
erl_interface: Fix windows compiler warnings
erts: Fix int_drv use of type SOCKLEN_T
erts: Use ERTS_SYS_FD_INVALID instead of -1
erts: Fix misc Windows C compiler warnings
|
| | |
|
| |
| |
| |
| | |
This reverts commit eee1f3aba92b5a741eabfa1cb6eca0632562777a.
|
| | |
|
| |
| |
| |
| | |
This reverts commit 63638d668efbeb4539ba301328cabbc2636fb154.
|
| | |
|
| |
| |
| |
| | |
This reverts commit 50e614e7d5fee9e3bfe8a58e7f390c6ea6caf271.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
The generated code and not the generator was updated in a previous commit.
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* dgud/build-WSL:
Add missing files to gitignore
Make build installer work from WSL
Fix deps generation on Windows
Support ssl-1.1.1 on windows when building crypto
Setup VC env in otp_build
Add wsl config as an environment to otp build tools
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Allows "cross" building with native windows from WSL linux.
Currently we only support building on the windows disk,
old WSL installations can not access WSL disk at all and
on the newer ones it is still problematic.
Thus, create the erlang src/git on /mnt/c/<dir>/otp/
and don't create links from wsl to windows, that will
cause problems for the scripts and will not work.
Use:
cd /mnt/c/<dir>/otp
eval `./otp_build env_win32 ARCH`
./otp_build
To build with emu_cc (32 and 64) it needs mingw-gcc
On wsl ubuntu use: 'sudo apt-get install gcc-mingw-w64'
to install everything for both build targets.
Additional commit comments:
- Let configure (crypto/wx) search in '/mnt/c/DocumentedPaths'
- Use -Z7 for debug info
Add debug info into .o files instead of vc120.pdb which
makes parallel compilation more stable.
- Use mingw-gcc as emu_cc
Packages available in ubuntu.
- Use $ERL_TOP/tmp for temporary directories
Linux /tmp is not accessable in older wsl (arrived in Win 10 19.03).
- Quoting is problematic
It seems to be impossible to handle 'spaces' in paths correct,
the autotools are just not prepared to handle that
and we depend on them.
Currently NOT supported but have been prepared for:
-Using wsl as disk
-- Ensure directory exists
If linux file server is overloaded it may take a while until the
directory is visible for windows programs.
-- Use absolute paths
Windows tools needs absolute (the network path) to access
files on the wsl drive.
Also we can not use mixed mode (forward slashes) for network paths,
windows programs don't recognize //wsl$/<install>/
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | | |
* dgud/stdlib/gen-async-call:
Add tag to response message
stdlib: Add 'send_request' and 'wait_response' to generic behaviors
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Since users may now inspect the message queue between,
'send_req' and 'wait_response' which may contain the reply message
which is a bit non-descriptive, a tag is added to explain it.
This doesn't mean that the message interface is set in stone or
documented, it can still be changed.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Simplify and encourage users to do more async work. The usage pattern
is already available in the 'rpc' module and similar usages are
available in other languages and standards.
Currently async calls can be implemented via cast or regular messages,
but the user needs to implement it in both client and server.
In the implementation in this commit the server does not need to know
that the client are making async calls.
`wait_response(Promise)` returns `{reply, Reply} | {error, Reason}`.
`wait_response(Promise, Timeout)` returns `{reply, Reply}` | {error,
Reason} or `timeout` if there is a client-side timeout.
The reason for the `reply` tuple is that `Reply` may be positive or
negative answer. That is, `{reply, {ok, Value}}` and `{reply, {error,
Reason}}` looks better than `{ok, {error, Reason}}` or `{ok, {ok,
Value}}`. We also need to encapsulate the return value to
differentiate between client timeouts and the server response that may
be the atom `timeout`.
We don't want do `exit(timeout)` since in that case is is not possible
to do non-blocking wait_response without catching the call to `wait_response(Promise, 0)`.
`check_response(Message, ReqId)` returns `{reply, Reply}` if the
`Message` is a reply from the server associated with the handle
`ReqId`. Otherwise it returns `no_reply`.
`check_response/2` is introduced to be able to handle concurrent
async_calls in a receive loop or in a handle_info callback in another
gen_server.
```
Promise = gen:send_request(..),
.
.
.
dispatch(State) ->
receive
Msg ->
case gen:check_response(Msg, Promise) of
{reply, Reply} ->
{Reply, State};
no_reply ->
State0 = handle_msg(Msg, State0),
dispatch(State0)
end
end.
```
Both wait_response and check_response leaves the monitor until a proper response
is received or the moniter fires. To be able to poll for response.
The functions in rpc are named async_call and yield but
OTB decided to use the names 'send_request', 'wait_response' and
'check_response' here instead.
Returns error tuples in case of server (or network) errors in
'check_response' and 'wait_response'.
For some cases, for example named process not existing, the
'send_request' part in 'gen:call' exited, this is now catched and a
'DOWN' message is faked so that all error handling can be done when
handling the response.
This enables to extend the functionality with
check_response_m(Msg, MapWithRequestIds)
|
|\ \ \ \
| |/ / /
|/| | /
| | |/
| |/|
| | |
| | |
| | |
| | | |
* maint:
Updated OTP version
Prepare release
# Conflicts:
# OTP_VERSION
|
| | | |
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* maint:
wx: Add To/FromDIP functionality
|
| | |
| | |
| | |
| | | |
Add the possibility to handle high resolution screens.
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* maint:
Fix awk warning about missing file
Fix deprecated warning
Add wxMouseEvent:getWheelAxis function
Fix enum that have changed values
Fix bad compiler test
|
| | |
| | |
| | |
| | | |
Modernize usage, i.e. copy from current gen_server.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Allows users see if the events was from the horizontal mouse wheel.
Have not changed the wxMouse record, would be incompatible, but this
allows the user to check for it in an event callback.
|
| | |
| | |
| | |
| | |
| | | |
Some more enums have been added/changed definitions and can no longer
be constants in wx.hrl
|
| | |
| | |
| | |
| | |
| | | |
Turned the tests the wrong way and compilation
failed with wxWidget-3.0 and wxMac.
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | | |
* maint:
Add Mac specific menubar functions
Add wxWindow:isShownOnScreen/1
|
| | |
| | |
| | |
| | | |
Needed on the Mac for some programs.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Many functions on gtk relies on that the window is actually shown on
screen, i.e. realized.
Create window/frame is an async request and it may take some time before it
is actually shown on screen, so add this to allow user to test it.
|
|\ \ \
| | |/
| |/|
| | |
| | |
| | |
| | | |
* dgud/cleanup-windows-build:
Refactor otp_build env_win32
Speedup depend.mk creation
Refactor win32 configure handling
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
There are a lot of MIXED_* options and adding a another mode for WSL
will make things worse, thus a cleanup is done first.
This commit consolidates the handling for the Makefiles, src and scripts and
moves the funcionality into similar named wrapper-scripts instead.
Path conversion is done with a script 'w32_path.sh' and
registry lookups with 'reg_query.sh'.
Path to the wrapper scripts is setup with: otp_build env_win32 <arch>.
|
|\ \ \
| |/ /
|/| /
| |/
| |
| |
| |
| |
| | |
* maint:
Updated OTP version
Prepare release
# Conflicts:
# OTP_VERSION
|
| | |
|
|\ \
| |/
| |
| |
| |
| |
| | |
* maint:
Speed up compilation
Cleanup configure
Fail if no C++ compiler is avaiable
|
| |\
| | |
| | |
| | |
| | |
| | |
| | | |
* dgud/wx-configure-fixes:
Speed up compilation
Cleanup configure
Fail if no C++ compiler is avaiable
|
| | |
| | |
| | |
| | | |
Decreases compilation time without reducing performance.
|
| | |
| | |
| | |
| | |
| | | |
Remove possibility to compile wx as a standalone package, outside of
OTP src tree.
|
| | | |
|
|/ /
| |
| |
| | |
The added make target is described in HOWTO/TESTING.md.
|
|/ |
|
| |
|
|
|
|
| |
This reverts commit 425889ba69b69a9b6fb14bfbef121d51b78e853a.
|
| |
|
|\
| |
| | |
Fix various spelling mistakes
|
| |
| |
| |
| | |
Fix ERL-541 and various other unreported spelling mistakes.
|
| |
| |
| |
| | |
This reverts commit 0118046f9bda8dcf3594184fa439b79267db8017.
|
| | |
|
| | |
|
|\ \
| |/
| |
| |
| |
| | |
* maint:
Updated OTP version
Prepare release
|