Skip to content

Use waitlock flag in lock() #14

Open
@razed11

Description

@razed11

lock() does not wait the lock timeout before failing. The waitlock flag (bit 0) is not being set. Is there a reason why this flag would never be set? If there is, perhaps add a default wait = False argument?

    def lock(self):
        "Send lock command"
        if self.link is None:
            self.open()

        # flags = 0

        # TODO: Added waitlock flag.
        flags = 1 

        error = self.client.device_lock(self.link,
                                        flags,
                                        self._lock_timeout_ms)

        if error:
            raise Vxi11Exception(error, 'lock')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions