diff options
author | Björn-Egil Dahlberg <[email protected]> | 2012-04-13 15:23:09 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2012-04-13 15:23:09 +0200 |
commit | e40200f31b90d1ecfea1b5070dbf0bf9119cd8df (patch) | |
tree | fb44f1a1b6622d9f40b3f1ef85d6396c4cb1b649 /erts/emulator/beam/erl_lock_count.h | |
parent | 7e79e3bc8d3ebbb61b09865c51e96ac3290c899b (diff) | |
parent | 861454268770e05bd72312c1a46560ed29a42500 (diff) | |
download | otp-e40200f31b90d1ecfea1b5070dbf0bf9119cd8df.tar.gz otp-e40200f31b90d1ecfea1b5070dbf0bf9119cd8df.tar.bz2 otp-e40200f31b90d1ecfea1b5070dbf0bf9119cd8df.zip |
Merge branch 'maint'
Diffstat (limited to 'erts/emulator/beam/erl_lock_count.h')
-rw-r--r-- | erts/emulator/beam/erl_lock_count.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_lock_count.h b/erts/emulator/beam/erl_lock_count.h index 6306580ae4..690551c71f 100644 --- a/erts/emulator/beam/erl_lock_count.h +++ b/erts/emulator/beam/erl_lock_count.h @@ -89,6 +89,7 @@ #define ERTS_LCNT_OPT_LOCATION (((Uint16) 1) << 1) #define ERTS_LCNT_OPT_PROCLOCK (((Uint16) 1) << 2) #define ERTS_LCNT_OPT_COPYSAVE (((Uint16) 1) << 3) +#define ERTS_LCNT_OPT_PORTLOCK (((Uint16) 1) << 4) typedef struct { unsigned long s; @@ -201,5 +202,7 @@ void erts_lcnt_clear_counters(void); char *erts_lcnt_lock_type(Uint16 type); erts_lcnt_data_t *erts_lcnt_get_data(void); +#define ERTS_LCNT_LOCK_TYPE(lockp) ((lockp)->flag & ERTS_LCNT_LT_ALL) + #endif /* ifdef ERTS_ENABLE_LOCK_COUNT */ #endif /* ifndef ERTS_LOCK_COUNT_H__ */ |