mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Put all jobs on a global all_jobs list and use that in server.c instead of
running through all the clients.
This commit is contained in:
		
							
								
								
									
										4
									
								
								tmux.h
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								tmux.h
									
									
									
									
									
								
							@@ -578,8 +578,10 @@ struct job {
 | 
			
		||||
	void		*data;
 | 
			
		||||
 | 
			
		||||
	RB_ENTRY(job)	 entry;
 | 
			
		||||
	SLIST_ENTRY(job) lentry;
 | 
			
		||||
};
 | 
			
		||||
RB_HEAD(jobs, job);
 | 
			
		||||
SLIST_HEAD(joblist, job);
 | 
			
		||||
 | 
			
		||||
/* Screen selection. */
 | 
			
		||||
struct screen_sel {
 | 
			
		||||
@@ -1199,7 +1201,7 @@ struct options_entry *options_set_data(
 | 
			
		||||
void   *options_get_data(struct options *, const char *);
 | 
			
		||||
 | 
			
		||||
/* job.c */
 | 
			
		||||
extern struct jobs jobs_tree;
 | 
			
		||||
extern struct joblist all_jobs;
 | 
			
		||||
int	job_cmp(struct job *, struct job *);
 | 
			
		||||
RB_PROTOTYPE(jobs, job, entry, job_cmp);
 | 
			
		||||
void	job_tree_init(struct jobs *);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user