diff options
author | Sverker Eriksson <[email protected]> | 2012-02-07 19:43:31 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2012-02-21 12:23:06 +0100 |
commit | fa5213fd7590c6a9ade13af1375c363b958927f1 (patch) | |
tree | d1cb53979ff22779fbd83eccc22f4e5fb33d3ac4 /erts/emulator/beam/export.h | |
parent | c2f62a3813c5c2bd2bb691df816d5fc2fb17206a (diff) | |
download | otp-fa5213fd7590c6a9ade13af1375c363b958927f1.tar.gz otp-fa5213fd7590c6a9ade13af1375c363b958927f1.tar.bz2 otp-fa5213fd7590c6a9ade13af1375c363b958927f1.zip |
erts: Cleanup non-blocking load
Diffstat (limited to 'erts/emulator/beam/export.h')
-rw-r--r-- | erts/emulator/beam/export.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/erts/emulator/beam/export.h b/erts/emulator/beam/export.h index ef9c1d2680..45c98d6bbb 100644 --- a/erts/emulator/beam/export.h +++ b/erts/emulator/beam/export.h @@ -61,11 +61,9 @@ typedef struct export void init_export_table(void); void export_info(int, void *); -Export* erts_find_export_entry(Eterm m, Eterm f, unsigned int a, ErtsCodeIndex); -Export* erts_active_export_entry(Eterm m, Eterm f, unsigned int a); /*SVERK inline? */ +ERTS_GLB_INLINE Export* erts_active_export_entry(Eterm m, Eterm f, unsigned a); Export* erts_export_put(Eterm mod, Eterm func, unsigned int arity); - Export* erts_export_get_or_make_stub(Eterm, Eterm, unsigned); Export *export_list(int,ErtsCodeIndex); @@ -85,4 +83,16 @@ extern erts_smp_rwmtx_t export_staging_lock; (((EntryPtr)->addressv[erts_active_code_ix()] == (EntryPtr)->code + 3) && \ ((EntryPtr)->code[3] == (BeamInstr) em_apply_bif)) -#endif +#if ERTS_GLB_INLINE_INCL_FUNC_DEF + +ERTS_GLB_INLINE Export* +erts_active_export_entry(Eterm m, Eterm f, unsigned int a) +{ + extern Export* erts_find_export_entry(Eterm m, Eterm f, unsigned a, ErtsCodeIndex); + return erts_find_export_entry(m, f, a, erts_active_code_ix()); +} + +#endif /* ERTS_GLB_INLINE_INCL_FUNC_DEF */ + +#endif /* __EXPORT_H__ */ + |