diff options
author | Björn Persson <bjorn@rombobjörn.se> | 2013-02-17 17:54:35 +0100 |
---|---|---|
committer | Björn Persson <bjorn@rombobjörn.se> | 2013-02-17 17:54:35 +0100 |
commit | ba9cf13e6dfa85bdb0f99295cbf578f4493ccf05 (patch) | |
tree | 161bba0b22eb07a6861cc9634d5e6ede14e87e42 /milter_api.adb | |
parent | 4766a7a7a2f23ee10560e1a2a177eec8931d974a (diff) |
Made thread wrapping entirely library-controlled.
Diffstat (limited to 'milter_api.adb')
-rw-r--r-- | milter_api.adb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/milter_api.adb b/milter_api.adb index f68b07a..f89a873 100644 --- a/milter_api.adb +++ b/milter_api.adb @@ -717,10 +717,16 @@ package body Milter_API is Check_For_Error("smfi_opensocket", smfi_opensocket(I(Remove_Old_Socket))); end Open_Socket; + procedure Start_Wrapping is separate; + -- If thread wrapping was enabled at compile time, then Start_Wrapping tells + -- the thread wrapper to start wrapping threads. Otherwise it does nothing. + pragma Inline_Always(Start_Wrapping); + procedure Main is function smfi_main return int; pragma import(C, smfi_main); begin + Start_Wrapping; Check_For_Error("smfi_main", smfi_main); end Main; |