OpenBSD CVS

CVS log for src/usr.bin/tmux/cmd-wait-for.c


[BACK] Up to [local] / src / usr.bin / tmux

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.22 / (download) - annotate - [select for diffs], Sat Aug 21 10:22:39 2021 UTC (2 years, 8 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, HEAD
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Add args parsing callback for some future work, currently unused.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Aug 20 19:50:17 2021 UTC (2 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.20: +5 -5 lines
Diff to previous 1.20 (colored)

Hide struct args behind a couple of accessor functions.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Apr 13 10:59:58 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

Also move cmdq_item and cmdq_list into cmd-queue.c (this is to make its
use more clearly defined and preparation for some future work).

Revision 1.19 / (download) - annotate - [select for diffs], Mon Apr 13 08:26:27 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Make struct cmd local to cmd.c and move it out of tmux.h.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jun 18 11:08:42 2019 UTC (4 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.17: +5 -5 lines
Diff to previous 1.17 (colored)

Add a cmdq_continue function rather than twiddling the flag directly.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Nov 7 07:58:16 2018 UTC (5 years, 6 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

There is no reason wait-for has to be restricted to outside tmux.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Oct 16 19:04:05 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.15: +30 -28 lines
Diff to previous 1.15 (colored)

Mass rename struct cmd_q to struct cmdq_item and related.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Oct 16 17:55:14 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.14: +40 -31 lines
Diff to previous 1.14 (colored)

Rewrite command queue handling. Each client still has a command queue,
but there is also now a global command queue. Instead of command queues
being dispatched on demand from wherever the command happens to be
added, they are now all dispatched from the top level server
loop. Command queues may now also include callbacks as well as commands,
and items may be inserted after the current command as well as at the end.

This all makes command queues significantly more predictable and easier
to use, and avoids the complex multiple nested command queues used by
source-file, if-shell and friends.

A mass rename of struct cmdq to a better name (cmdq_item probably) is
coming.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Oct 10 21:51:39 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.13: +23 -24 lines
Diff to previous 1.13 (colored)

Add static in cmd-* and fix a few other nits.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jan 19 15:59:12 2016 UTC (8 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

I no longer use my SourceForge address so replace it.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Dec 13 21:53:57 2015 UTC (8 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.11: +9 -6 lines
Diff to previous 1.11 (colored)

Use member names in cmd_entry definitions so I stop getting confused
about the order.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Nov 18 14:27:44 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

Use __unused rather than rolling our own.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Oct 20 21:12:08 2015 UTC (8 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.9: +3 -4 lines
Diff to previous 1.9 (colored)

Use client pointer not file descriptor in logging.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Sep 13 10:45:55 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Set woken flag when flushing so that the channel is freed, while here
use the same loop construct for both loops.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Sep 4 12:02:44 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.7: +71 -36 lines
Diff to previous 1.7 (colored)

Change wait-for to work when the signal comes before the wait, also use
some helper functions and add some logging.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Oct 20 22:29:25 2014 UTC (9 years, 7 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.6: +1 -2 lines
Diff to previous 1.6 (colored)

Instead of setting up the default keys by building the key struct
directly with a helper function in the cmd_entry, include a table of
bind-key commands and pass them through the command parser and a
temporary cmd_q.

As well as being smaller, this will allow default bindings to be command
sequences which will probably be needed soon.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Sep 1 21:58:41 2014 UTC (9 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.5: +23 -1 lines
Diff to previous 1.5 (colored)

Wake up any clients waiting with the wait-for command when the server
exits.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Sep 1 21:50:18 2014 UTC (9 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Various minor style and spacing nits.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Oct 10 12:02:55 2013 UTC (10 years, 7 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Mark flags as optional and mutually exclusive. From Tiago Cunha.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Oct 10 12:00:24 2013 UTC (10 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.2: +1 -2 lines
Diff to previous 1.2 (colored)

Remove the barely-used and unnecessary command check() function.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Mar 25 10:09:35 2013 UTC (11 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.1: +79 -6 lines
Diff to previous 1.1 (colored)

Add wait-for -L and -U for lock and unlock, from Thiago Padilha.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Mar 25 10:09:05 2013 UTC (11 years, 1 month ago) by nicm
Branch: MAIN

Add a wait-for command which blocks a client on a named channel until it
is woken up again (with wait-for -S). From Thiago Padilha.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.