diff options
author | Rickard Green <[email protected]> | 2014-01-28 14:29:13 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2014-01-28 14:29:13 +0100 |
commit | 566a2ef07e3635bfa65d371505c61b43be82f617 (patch) | |
tree | 725c62f19c62a3011a0d3218db8c5ca4a5326363 /erts/emulator/beam | |
parent | e0001b1311dc3182793e21f598dabf15053aead7 (diff) | |
parent | 8ff33cff02d01b2b4f20769cbd77c5ef23b01631 (diff) | |
download | otp-566a2ef07e3635bfa65d371505c61b43be82f617.tar.gz otp-566a2ef07e3635bfa65d371505c61b43be82f617.tar.bz2 otp-566a2ef07e3635bfa65d371505c61b43be82f617.zip |
Merge branch 'vinoski/rm-drv-async-cancel'
OTP-11628
* vinoski/rm-drv-async-cancel:
remove deprecated driver_async_cancel function
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/erl_async.c | 22 | ||||
-rw-r--r-- | erts/emulator/beam/erl_driver.h | 10 |
2 files changed, 3 insertions, 29 deletions
diff --git a/erts/emulator/beam/erl_async.c b/erts/emulator/beam/erl_async.c index e6d72f569b..f0cec1c53c 100644 --- a/erts/emulator/beam/erl_async.c +++ b/erts/emulator/beam/erl_async.c @@ -602,7 +602,7 @@ unsigned int driver_async_port_key(ErlDrvPort port) ** return values: ** 0 completed ** -1 error -** N handle value (used with async_cancel) +** N handle value ** arguments: ** ix driver index ** key pointer to secedule queue (NULL means round robin) @@ -687,23 +687,3 @@ long driver_async(ErlDrvPort ix, unsigned int* key, return id; } - -int driver_async_cancel(unsigned int id) -{ - /* - * Not supported anymore. Always fail (which is backward - * compatible). - * - * This functionality could be implemented again. However, - * it is (and always has been) completely useless since - * it doesn't give you any guarantees whatsoever. The user - * needs to (and always have had to) synchronize in his/her - * own code in order to get any guarantees. - */ - return 0; -} - - - - - diff --git a/erts/emulator/beam/erl_driver.h b/erts/emulator/beam/erl_driver.h index 5cffae92be..2bd3181bdc 100644 --- a/erts/emulator/beam/erl_driver.h +++ b/erts/emulator/beam/erl_driver.h @@ -132,8 +132,8 @@ typedef struct { #define DO_WRITE ERL_DRV_WRITE #define ERL_DRV_EXTENDED_MARKER (0xfeeeeeed) -#define ERL_DRV_EXTENDED_MAJOR_VERSION 2 -#define ERL_DRV_EXTENDED_MINOR_VERSION 2 +#define ERL_DRV_EXTENDED_MAJOR_VERSION 3 +#define ERL_DRV_EXTENDED_MINOR_VERSION 0 /* * The emulator will refuse to load a driver with different major @@ -657,12 +657,6 @@ EXTERN long driver_async(ErlDrvPort ix, void* async_data, void (*async_free)(void*)); -/* - * driver_async_cancel() is deprecated. It is scheduled for removal - * in OTP-R16. For more information see the erl_driver(3) documentation. - */ -EXTERN int driver_async_cancel(unsigned int key) ERL_DRV_DEPRECATED_FUNC; - /* Locks the driver in the machine "forever", there is no unlock function. Note that this is almost never useful, as an open port towards the driver locks it until the port is closed, why unexpected |