anchao commented on PR #12802:
URL: https://github.com/apache/nuttx/pull/12802#issuecomment-2259529520

   > This appears to be new OS internal functionality and not available to 
applications. Hence, there can be no use of file descriptors. The 
implementation uses internal OS naming (nxevent_ prefix) and does not support 
any system call interface for applications.
   
   @patacongo Yes, nxevent is a set of interfaces for kernel space.
   
   > I only skimmed the functionality, but it seems to be functionally similar 
to pthread barriers. Do I understand that correctly? If so, why are there two 
implementations of such similar functionality. Shouldn't there correctly be 
only one, with logic like this providing the common back-end functionality for 
pthread barriers?
   
   nxevent supports waiting for certain or specified events, similar to the 
poll()/select() in user space.
   
   > If you choose to merge this, can you please add a test for this 
functionality to ostest. Perhaps you could base such a test on the pthread 
barrier test?
   
   Yes, I will provide test code and integrate it into ostest, since nxevent is 
a kernel function, related test may not be compiled in protected/kernel mode. 
Initially, it may only be enabled in flat mode.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to