starpu_top_connection.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* StarPU --- Runtime system for heterogeneous multicore architectures.
  2. *
  3. * Copyright (C) 2011 William Braik, Yann Courtois, Jean-Marie Couteyen, Anthony
  4. * Roy
  5. *
  6. * StarPU is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU Lesser General Public License as published by
  8. * the Free Software Foundation; either version 2.1 of the License, or (at
  9. * your option) any later version.
  10. *
  11. * StarPU is distributed in the hope that it will be useful, but
  12. * WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. *
  15. * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  16. */
  17. #ifndef __STARPU_TOP_CONNECTION_H__
  18. #define __STARPU_TOP_CONNECTION_H__
  19. #include <stdlib.h>
  20. #include <top/starpu_top_message_queue.h>
  21. #include <starpu_top.h>
  22. #ifdef __cplusplus
  23. extern "C"
  24. {
  25. #endif
  26. extern struct _starpu_top_message_queue* _starpu_top_mt;
  27. /*
  28. * This function initialize the two communications threads.
  29. * It initializes the connection and then launches the threads.
  30. * The function wait the UI connection before launching the threads.
  31. * About mt : mt MUST be allocated before call.
  32. * All messages in the queue are freed after used.
  33. */
  34. void _starpu_top_communications_threads_launcher(void);
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38. #endif // __STARPU_TOP_CONNECTION_H__