mirror of
				https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
				synced 2025-11-04 04:27:48 +00:00 
			
		
		
		
	Add yield (#64)
Simply calls rd_kafka_yield; allows consumers and producers to abort the current callback dispatcher.
This commit is contained in:
		
				
					committed by
					
						
						Matias Fontanini
					
				
			
			
				
	
			
			
			
						parent
						
							d9feb5c3db
						
					
				
				
					commit
					ee71b3979a
				
			@@ -200,6 +200,13 @@ public:
 | 
			
		||||
     * This calls rd_kafka_outq_len
 | 
			
		||||
     */
 | 
			
		||||
    int get_out_queue_length() const;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * \brief Cancels the current callback dispatcher
 | 
			
		||||
     *
 | 
			
		||||
     * This calls rd_kafka_yield
 | 
			
		||||
     */
 | 
			
		||||
    void yield() const;
 | 
			
		||||
protected:
 | 
			
		||||
    KafkaHandleBase(Configuration config);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user