thread.H

00001 /* File:      thread.H
00002 ** Author(s): R. Marques
00003 ** Contact:   xsb-contact@cs.sunysb.edu
00004 ** 
00005 ** Copyright (C) The Research Foundation of SUNY, 1986, 1993-1998
00006 ** 
00007 ** XSB is free software; you can redistribute it and/or modify it under the
00008 ** terms of the GNU Library General Public License as published by the Free
00009 ** Software Foundation; either version 2 of the License, or (at your option)
00010 ** any later version.
00011 ** 
00012 ** XSB is distributed in the hope that it will be useful, but WITHOUT ANY
00013 ** WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00014 ** FOR A PARTICULAR PURPOSE.  See the GNU Library General Public License for
00015 ** more details.
00016 ** 
00017 ** You should have received a copy of the GNU Library General Public License
00018 ** along with XSB; if not, write to the Free Software Foundation,
00019 ** Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00020 **
00021 ** $Id: thread.H,v 1.11 2006/05/31 22:30:08 tswift Exp $
00022 ** 
00023 */
00024 
00025 :- export thread_cancel/1,
00026           thread_create/2,thread_create/3,
00027           thread_detach/1,
00028           thread_exit/1,
00029           thread_exit/0,
00030           thread_join/2, 
00031           thread_join/1,
00032           thread_property/2,
00033           thread_self/1,
00034           thread_yield/0.
00035 
00036 :- export xsb_thread_cancel/1,
00037           xsb_thread_create/2,xsb_thread_create/3, 
00038           xsb_thread_detach/1,
00039           xsb_thread_exit/1,  
00040           xsb_thread_exit/0,  % obsolescent
00041           xsb_thread_join/2, 
00042           xsb_thread_join/1,  % obsolescent
00043           xsb_thread_property/2,
00044           xsb_thread_self/1,
00045           xsb_thread_yield/0.
00046 
00047 :- export abolish_private_tables/0,abolish_shared_tables/0.
00048 
00049 :-export xsb_mutex_init/1, xsb_mutex_lock/1, xsb_mutex_trylock/1,
00050          xsb_mutex_unlock/1, xsb_mutex_destroy/1, xsb_mutex_init_np/2.
00051 
00052 :- export xsb_sys_mutex_lock/1, xsb_sys_mutex_unlock/1.
00053 
00054 :- export xsb_user_mutex_lock/1, xsb_user_mutex_unlock/1.
00055 
00056 :- export xsb_show_mutexes/0.
00057 
00058 :- export xsb_set_init_glstack_size/1, xsb_set_init_tcpstack_size/1,
00059           xsb_set_init_pdl_size/1, xsb_set_init_complstack_size/1.
00060 
00061 /* Higher level */
00062 :- export par_execute/1, n_par_execute/2.
00063 :- export exmut_execute/2, console_exmut/1.
00064 
00065  :- import retractall/1 from assert.
00066  
00067  :- import check_callable/3, check_integer/3, check_nonvar/3, check_var/3,
00068    default_error_handler/1,domain_error/5,
00069    instantiation_error/3, misc_error/1, permission_error/4 from error_handler.
00070 
00071 :- import thread_request/8 from machine.
00072 :- import stat_set_flag/2, term_psc/2 from machine.
00073 
00074 :- import call/1, catch/3, integer/1 from standard.
00075 
00076  :- import '_$thread_exit_ball'/2 from usermod.
00077 
00078 
00079 
00080 

Generated on Wed Jul 26 13:30:47 2006 for XSB by  doxygen 1.4.5