navigate Logo

Getting Started

  • Computer Considerations
  • Computer Power Configuration
  • Software Installation
  • Launching Navigate
  • Configuring Navigate
  • Acquiring Data
  • Smart Acquisition Routines

User Guide

  • Supported Hardware
  • Supported File Formats
  • User Interface Walkthrough
  • Setting Up a Microscope
  • Acquiring Data
  • Case Studies

Development

  • Contributing Guidelines
  • Developer Install
  • Software Architecture
  • Developer Architecture Concepts
  • Feature Container
  • REST API
  • Plugin Architecture
  • Adding New Hardware

Troubleshooting & Known Issues

  • Troubleshooting
  • Known Issues

Plugins

  • navigate Plugin Template
  • navigate Confocal Projection
  • navigate at Scale
  • navigate Constant Velocity Acquisition
  • navigate MMCore
  • navigate ilastik Server
  • navigate Photoactivation

Reference

  • Implemented Microscopes
  • Software API
    • navigate.config
    • navigate.controller
      • navigate.controller.autofocus_calibration
      • navigate.controller.configuration_controller
      • navigate.controller.configurator
      • navigate.controller.controller
      • navigate.controller.sub_controllers
      • navigate.controller.thread_pool
        • navigate.controller.thread_pool.SelfLockThread
        • navigate.controller.thread_pool.SynchronizedThreadPool
        • navigate.controller.thread_pool.ThreadWaitlist
    • navigate.controller.configurator
    • navigate.log_files
    • navigate.model
    • navigate.tools
    • navigate.view
navigate
  • Software API
  • navigate.controller
  • navigate.controller.thread_pool
  • navigate.controller.thread_pool.SelfLockThread
  • View page source

navigate.controller.thread_pool.SelfLockThread

class navigate.controller.thread_pool.SelfLockThread(group=None, target=None, name=None, args=(), kwargs={}, *, daemon=None)

Bases: Thread

A custom thread class with self-locking capabilities.

This class extends the functionality of the Python threading.Thread class by providing the ability to lock and unlock the thread explicitly. It is useful in scenarios where thread synchronization and control are required.

Note

  • This class provides additional control over thread execution using the wait() and unlock() methods.

  • It allows checking whether the thread is currently locked using the isLocked() method.

__init__(group=None, target=None, name=None, args=(), kwargs={}, *, daemon=None)

Initialize the SelfLockThread.

Parameters:
  • group (ThreadGroup, optional) – The thread group, by default None

  • target (callable, optional) – The target function of the thread, by default None

  • name (str, optional) – The name of the thread, by default None

  • args (tuple, optional) – The arguments of the target function, by default ()

  • kwargs (dict, optional) – The keyword arguments of the target function, by default {}

  • daemon (bool, optional) – Whether the thread is daemon, by default None

Methods

__init__([group, target, name, args, ...])

Initialize the SelfLockThread.

isLocked()

Check if the thread is locked.

run()

Run the thread.

unlock()

Unlock the thread.

wait()

Wait for the thread to finish.

Attributes

  • selfLock

isLocked()

Check if the thread is locked.

Returns:

Whether the thread is locked.

Return type:

bool

run()

Run the thread.

unlock()

Unlock the thread.

wait()

Wait for the thread to finish.

selfLock

The lock of the thread.

Type:

threading.Lock

Previous Next

© Copyright 2026, Dean Lab, UT Southwestern Medical Center.