mbgtools-lx  4.2.8
mbgmutex.h File Reference
#include <mbg_tgt.h>
#include <words.h>
#include <pthread.h>

Go to the source code of this file.

Macros

#define _ext   extern
 
#define _mbg_mutex_init(_pm, _n)   pthread_mutex_init( (_pm), NULL )
 
#define _mbg_mutex_destroy(_pm)   pthread_mutex_destroy( (_pm) )
 
#define _mbg_mutex_acquire(_pm)   pthread_mutex_lock( (_pm) )
 
#define _mbg_mutex_release(_pm)   pthread_mutex_unlock( (_pm) )
 
#define _MBG_MUTEX_DEFINED   1
 
#define _mbg_spin_lock_init(_spl, _n)   _nop_macro_fnc()
 
#define _mbg_spin_lock_acquire(_spl)   _nop_macro_fnc()
 
#define _mbg_spin_lock_release(_spl)   _nop_macro_fnc()
 
#define _MBG_CRIT_SECT_DEFINED   1
 
#define _mbg_crit_sect_init   _mbg_mutex_init
 
#define _mbg_crit_sect_destroy   _mbg_mutex_destroy
 
#define _mbg_crit_sect_enter   _mbg_mutex_acquire
 
#define _mbg_crit_sect_leave   _mbg_mutex_release
 

Typedefs

typedef pthread_mutex_t MBG_MUTEX
 
typedef MBG_MUTEX MBG_CRIT_SECT
 

Macro Definition Documentation

◆ _ext

#define _ext   extern

Definition at line 44 of file mbgmutex.h.

◆ _MBG_CRIT_SECT_DEFINED

#define _MBG_CRIT_SECT_DEFINED   1

Definition at line 230 of file mbgmutex.h.

◆ _mbg_crit_sect_destroy

#define _mbg_crit_sect_destroy   _mbg_mutex_destroy

Definition at line 235 of file mbgmutex.h.

Referenced by mbg_set_current_process_affinity_to_cpu().

◆ _mbg_crit_sect_enter

#define _mbg_crit_sect_enter   _mbg_mutex_acquire

Definition at line 237 of file mbgmutex.h.

Referenced by mbg_set_current_process_affinity_to_cpu().

◆ _mbg_crit_sect_init

#define _mbg_crit_sect_init   _mbg_mutex_init

Definition at line 233 of file mbgmutex.h.

Referenced by mbg_set_current_process_affinity_to_cpu().

◆ _mbg_crit_sect_leave

#define _mbg_crit_sect_leave   _mbg_mutex_release

Definition at line 238 of file mbgmutex.h.

Referenced by mbg_set_current_process_affinity_to_cpu().

◆ _mbg_mutex_acquire

#define _mbg_mutex_acquire (   _pm)    pthread_mutex_lock( (_pm) )

Definition at line 184 of file mbgmutex.h.

Referenced by dev_open_finish_setup(), mbgextio_fw_ufu_flash(), mbgextio_get_event_value_idx(), mbgextio_get_xmr_status_idx(), mbgextio_rcv_msg(), mbgextio_req_data(), mbgextio_req_data_idx(), mbgextio_send_database_cmd(), mbgextio_set_ant_cable_len(), mbgextio_set_database_settings_idx(), mbgextio_set_enable_flags(), mbgextio_set_event_settings_idx(), mbgextio_set_fdm_tdev(), mbgextio_set_gnss_mode_settings(), mbgextio_set_gpio_settings_idx(), mbgextio_set_holdover_interval(), mbgextio_set_hq_rx_settings(), mbgextio_set_hq_tx_settings(), mbgextio_set_ignore_lock(), mbgextio_set_ims_fdm_output_settings_idx(), mbgextio_set_ims_fdm_settings(), mbgextio_set_io_port_settings_idx(), mbgextio_set_ip4_settings(), mbgextio_set_irig_rx_settings(), mbgextio_set_irig_tx_settings(), mbgextio_set_led_settings_idx(), mbgextio_set_lne_port_settings_idx(), mbgextio_set_net_dns_srch_dom_idx(), mbgextio_set_net_dns_srvr_idx(), mbgextio_set_net_glb_cfg_settings(), mbgextio_set_net_intf_addr_settings_idx(), mbgextio_set_net_intf_link_settings_idx(), mbgextio_set_net_intf_route_settings_idx(), mbgextio_set_ntp_clnt_mode_cfg(), mbgextio_set_ntp_glb_info(), mbgextio_set_ntp_misc_orphan_mode_settings(), mbgextio_set_ntp_peer_settings_idx(), mbgextio_set_ntp_refclk_cfg_settings_idx(), mbgextio_set_ntp_srv_mode_cfg(), mbgextio_set_ntp_symm_key_settings_idx(), mbgextio_set_ntp_trusted_key_settings_idx(), mbgextio_set_opt_settings(), mbgextio_set_port_parm(), mbgextio_set_port_settings_idx(), mbgextio_set_pos_lla(), mbgextio_set_pout_settings_idx(), mbgextio_set_ptp_cfg_settings(), mbgextio_set_ptp_uc_master_settings_idx(), mbgextio_set_ptp_v1_current_dataset(), mbgextio_set_ptp_v1_default_dataset(), mbgextio_set_ptp_v1_parent_dataset(), mbgextio_set_ptp_v1_port_dataset_idx(), mbgextio_set_ptp_v1_time_properties_dataset(), mbgextio_set_ptp_v2_current_dataset(), mbgextio_set_ptp_v2_default_dataset(), mbgextio_set_ptp_v2_parent_dataset(), mbgextio_set_ptp_v2_port_dataset_idx(), mbgextio_set_ptp_v2_time_properties_dataset(), mbgextio_set_pwr_ctl(), mbgextio_set_ref_offs(), mbgextio_set_scu_stat_settings(), mbgextio_set_snmp_glb_settings(), mbgextio_set_snmp_v12_settings_idx(), mbgextio_set_snmp_v12_trap_settings_idx(), mbgextio_set_snmp_v3_settings_idx(), mbgextio_set_snmp_v3_trap_settings_idx(), mbgextio_set_svc_settings_idx(), mbgextio_set_synth(), mbgextio_set_syslog_glb_settings(), mbgextio_set_syslog_settings_idx(), mbgextio_set_time(), mbgextio_set_time_scale_settings(), mbgextio_set_tr_distance(), mbgextio_set_tzcode(), mbgextio_set_tzdl(), mbgextio_set_ucap_net_glb_settings(), mbgextio_set_ucap_net_recv_settings_idx(), mbgextio_set_user_level_settings_idx(), mbgextio_set_user_mngmnt_settings(), mbgextio_set_user_settings_idx(), mbgextio_set_utc_parm(), mbgextio_set_xmr_settings_idx(), mbgextio_setup_receiver_info(), mbgextio_xmt_cmd(), mbgextio_xmt_cmd_u32(), mbgextio_xmt_cmd_us(), and mbgextio_xmt_msg().

◆ _MBG_MUTEX_DEFINED

#define _MBG_MUTEX_DEFINED   1

Definition at line 187 of file mbgmutex.h.

◆ _mbg_mutex_destroy

#define _mbg_mutex_destroy (   _pm)    pthread_mutex_destroy( (_pm) )

Definition at line 183 of file mbgmutex.h.

Referenced by mbgextio_close_connection(), and pcps_cleanup_ddev().

◆ _mbg_mutex_init

#define _mbg_mutex_init (   _pm,
  _n 
)    pthread_mutex_init( (_pm), NULL )

Definition at line 182 of file mbgmutex.h.

Referenced by dev_open_finish_setup(), pcps_init_ddev(), and pcps_probe_device().

◆ _mbg_mutex_release

◆ _mbg_spin_lock_acquire

#define _mbg_spin_lock_acquire (   _spl)    _nop_macro_fnc()

◆ _mbg_spin_lock_init

#define _mbg_spin_lock_init (   _spl,
  _n 
)    _nop_macro_fnc()

Definition at line 204 of file mbgmutex.h.

Referenced by pcps_init_ddev(), and pcps_probe_device().

◆ _mbg_spin_lock_release

#define _mbg_spin_lock_release (   _spl)    _nop_macro_fnc()

Typedef Documentation

◆ MBG_CRIT_SECT

Definition at line 232 of file mbgmutex.h.

◆ MBG_MUTEX

typedef pthread_mutex_t MBG_MUTEX

Definition at line 181 of file mbgmutex.h.