thread_message.dcl 1.17 KB
Newer Older
Diederik van Arkel's avatar
Diederik van Arkel committed
1 2
definition module thread_message;

3
import StdString;
Diederik van Arkel's avatar
Diederik van Arkel committed
4 5 6 7 8

get_message_number :: Int;
// int get_message_number ();
get_current_thread_id :: Int;
// int get_current_thread_id ();
9 10
start_compiler_process :: !Int !String !String !String -> (!Int,!Int,!Int,!Int);
// int start_compiler_process (void (**dispatch_null_message_hook) (MSG*),CleanString compiler_path,CleanString compiler_directory,CleanString command,int* compiler_thread_id_p,int* compiler_thread_handle_p,int* process_handle_p);
Diederik van Arkel's avatar
Diederik van Arkel committed
11 12 13 14 15 16 17 18 19 20
send_string_to_thread :: !Int !Int !Int !String -> Int;
// int send_string_to_thread (int thread_id,int thread_handle,int wm_number,CleanString s);
send_integers_to_thread :: !Int !Int !Int !Int -> Int;
// int send_integers_to_thread (int thread_id,int wm_number,int i1,int i2);
get_integers_from_message :: !Int -> (!Int,!Int,!Int);
// int get_integers_from_message (int wm_number,int* i1_p,int* i2_p);
get_integers_from_thread_message :: !Int !Int -> (!Int,!Int,!Int);
// int get_integers_from_thread_message (int wm_number,int thread_handle,int* i1_p,int* i2_p);
get_string_from_file_map_and_delete_map :: !Int !String -> Int;
// int get_string_from_file_map_and_delete_map (int file_map,CleanString s);