aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/export.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2012-02-15 17:08:47 +0100
committerSverker Eriksson <[email protected]>2012-02-21 15:32:07 +0100
commitcd63cd50bae6d98d6d56fa24674f14e7b9457a37 (patch)
treed29626de041a5212203858839cddfe45e3468feb /erts/emulator/beam/export.h
parentdc2b0ecba50cbe6b2f2321b1f24579a0353ced18 (diff)
downloadotp-cd63cd50bae6d98d6d56fa24674f14e7b9457a37.tar.gz
otp-cd63cd50bae6d98d6d56fa24674f14e7b9457a37.tar.bz2
otp-cd63cd50bae6d98d6d56fa24674f14e7b9457a37.zip
erts: Refactor export staging lock
Renamed it export_staging_lock and made change it to ordinary mutex.
Diffstat (limited to 'erts/emulator/beam/export.h')
-rw-r--r--erts/emulator/beam/export.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/beam/export.h b/erts/emulator/beam/export.h
index 45c98d6bbb..ec9fcb26f2 100644
--- a/erts/emulator/beam/export.h
+++ b/erts/emulator/beam/export.h
@@ -74,9 +74,9 @@ Export *export_get(Export*);
void export_start_staging(void);
void export_end_staging(int commit);
-extern erts_smp_rwmtx_t export_staging_lock;
-#define export_write_lock() erts_smp_rwmtx_rwlock(&export_staging_lock)
-#define export_write_unlock() erts_smp_rwmtx_rwunlock(&export_staging_lock)
+extern erts_smp_mtx_t export_staging_lock;
+#define export_staging_lock() erts_smp_mtx_lock(&export_staging_lock)
+#define export_staging_unlock() erts_smp_mtx_unlock(&export_staging_lock)
#include "beam_load.h" /* For em_* extern declarations */
#define ExportIsBuiltIn(EntryPtr) \