Rombobjörn

summaryrefslogtreecommitdiff
path: root/test/thread_wrapping.adb
diff options
context:
space:
mode:
authorBjörn Persson <bjorn@rombobjörn.se>2013-01-21 13:10:21 +0100
committerBjörn Persson <bjorn@rombobjörn.se>2013-01-21 13:10:21 +0100
commitb098f5dc6a447df808ed755a1d6123f9ce7896dc (patch)
tree4080b60521a1ba5232083e523b6a86857e26ee00 /test/thread_wrapping.adb
parent638f5166cce43f0d9421a72e3669b13fa0b47567 (diff)
Added an outline of a test milter.
Diffstat (limited to 'test/thread_wrapping.adb')
-rw-r--r--test/thread_wrapping.adb21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/thread_wrapping.adb b/test/thread_wrapping.adb
new file mode 100644
index 0000000..75201e0
--- /dev/null
+++ b/test/thread_wrapping.adb
@@ -0,0 +1,21 @@
+-- The Ada Milter API test milter
+-- Copyright 2013 B. Persson, Bjorn@Rombobeorn.se
+--
+-- This program is free software: you can redistribute it and/or modify it
+-- under the terms of the GNU General Public License version 3, as published
+-- by the Free Software Foundation.
+
+
+-- GNAT.Threads must be ready for use before wrapping of threads can begin.
+with GNAT.Threads;
+pragma Elaborate_All(GNAT.Threads);
+pragma Unreferenced(GNAT.Threads);
+
+package body Thread_Wrapping is
+
+ procedure Start_Wrapping_Threads;
+ pragma import(C, Start_Wrapping_Threads, "start_wrapping_threads");
+
+begin
+ Start_Wrapping_Threads;
+end Thread_Wrapping;