Freeciv-3.1
Loading...
Searching...
No Matches
Functions
fcthread.h File Reference
#include "freeciv_config.h"
#include "support.h"

Go to the source code of this file.

Functions

int fc_thread_start (fc_thread *thread, void(*function)(void *arg), void *arg)
 
void fc_thread_wait (fc_thread *thread)
 
void fc_init_mutex (fc_mutex *mutex)
 
void fc_destroy_mutex (fc_mutex *mutex)
 
void fc_allocate_mutex (fc_mutex *mutex)
 
void fc_release_mutex (fc_mutex *mutex)
 
void fc_thread_cond_init (fc_thread_cond *cond)
 
void fc_thread_cond_destroy (fc_thread_cond *cond)
 
void fc_thread_cond_wait (fc_thread_cond *cond, fc_mutex *mutex)
 
void fc_thread_cond_signal (fc_thread_cond *cond)
 
bool has_thread_cond_impl (void)
 

Function Documentation

◆ fc_allocate_mutex()

void fc_allocate_mutex ( fc_mutex *  mutex)

◆ fc_destroy_mutex()

void fc_destroy_mutex ( fc_mutex *  mutex)

◆ fc_init_mutex()

void fc_init_mutex ( fc_mutex *  mutex)

◆ fc_release_mutex()

void fc_release_mutex ( fc_mutex *  mutex)

◆ fc_thread_cond_destroy()

void fc_thread_cond_destroy ( fc_thread_cond *  cond)

Dummy fc_thread_cond_destroy()

Definition at line 385 of file fcthread.c.

Referenced by tai_control_lost(), and texai_control_lost().

◆ fc_thread_cond_init()

void fc_thread_cond_init ( fc_thread_cond *  cond)

Dummy fc_thread_cond_init()

Definition at line 379 of file fcthread.c.

Referenced by tai_control_gained(), and texai_control_gained().

◆ fc_thread_cond_signal()

void fc_thread_cond_signal ( fc_thread_cond *  cond)

Dummy fc_thread_cond_signal()

Definition at line 397 of file fcthread.c.

Referenced by tai_msg_to_thr(), and texai_msg_to_thr().

◆ fc_thread_cond_wait()

void fc_thread_cond_wait ( fc_thread_cond *  cond,
fc_mutex *  mutex 
)

Dummy fc_thread_cond_wait()

Definition at line 391 of file fcthread.c.

Referenced by tai_thread_start(), and texai_thread_start().

◆ fc_thread_start()

int fc_thread_start ( fc_thread *  thread,
void(*)(void *arg)  function,
void *  arg 
)

◆ fc_thread_wait()

void fc_thread_wait ( fc_thread *  thread)

◆ has_thread_cond_impl()

bool has_thread_cond_impl ( void  )

Has freeciv thread condition variable implementation

Definition at line 405 of file fcthread.c.

Referenced by fc_ai_tex_setup(), and fc_ai_threaded_setup().