aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_driver.h
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2013-07-24 19:55:47 +0200
committerBjörn-Egil Dahlberg <[email protected]>2013-07-24 19:55:47 +0200
commit2bf244968fb368b204e7af4b33b72d6a71a937c6 (patch)
tree52626e47683ddcc3c5c79fa011f13314cfcb3328 /erts/emulator/beam/erl_driver.h
parenta938fc96881564f5f56a510b0c750efaa9ed48e4 (diff)
downloadotp-2bf244968fb368b204e7af4b33b72d6a71a937c6.tar.gz
otp-2bf244968fb368b204e7af4b33b72d6a71a937c6.tar.bz2
otp-2bf244968fb368b204e7af4b33b72d6a71a937c6.zip
erts: Extend erl_driver interface with lock names
Lock and thread names are already a feature in the driver interface. This extension will let developers read these names. Eases debugging.
Diffstat (limited to 'erts/emulator/beam/erl_driver.h')
-rw-r--r--erts/emulator/beam/erl_driver.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/erts/emulator/beam/erl_driver.h b/erts/emulator/beam/erl_driver.h
index e280563de1..42b14cd7bc 100644
--- a/erts/emulator/beam/erl_driver.h
+++ b/erts/emulator/beam/erl_driver.h
@@ -546,6 +546,11 @@ EXTERN int erl_drv_equal_tids(ErlDrvTid tid1, ErlDrvTid tid2);
EXTERN void erl_drv_thread_exit(void *resp);
EXTERN int erl_drv_thread_join(ErlDrvTid, void **respp);
+EXTERN char* erl_drv_mutex_name(ErlDrvMutex *mtx);
+EXTERN char* erl_drv_cond_name(ErlDrvCond *cnd);
+EXTERN char* erl_drv_rwlock_name(ErlDrvRWLock *rwlck);
+EXTERN char* erl_drv_thread_name(ErlDrvTid tid);
+
/*
* Misc.
*/
@@ -681,6 +686,3 @@ EXTERN int erl_drv_getenv(char *key, char *value, size_t *value_size);
/* also in global.h, but driver's can't include global.h */
void dtrace_drvport_str(ErlDrvPort port, char *port_buf);
-
-
-