XinStellaris opened a new pull request, #6512:
URL: https://github.com/apache/incubator-nuttx/pull/6512

   driver/syslog:sched lock in syslog to prevent garbled print from multi-thread
   
   Change-Id: I7e08763790f226ed3ebca5567ed77d698c258ca4
   Signed-off-by: 田昕 <tianx...@xiaomi.com>
   
   ## Summary
   In our application,  a long input string (approximately 1000bytes)  will be 
read and printed.  I need to figure out a way to make sure the prints are not 
garbled.
   Since the input is long, I don't want to use CONFIG_SYSLOG_BUFFER and 
increase syslog buffer size to 1000+ bytes.
   After some thought,  sched_lock is my solution. 
   FYI, we chose Round-Robin schedule.
   
   This pr also relates to 
https://github.com/apache/incubator-nuttx/issues/3599. I can't get answer from 
the discussion, but it is interesting and helpful to read it.
   
   ## Impact
   Scheduler behavior when sysloging is influenced.
   
   ## Testing
   Tested on Vela
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to