chenBright commented on PR #3504:
URL: https://github.com/apache/brpc/pull/3504#issuecomment-5479073521

   I think keeping it in the comments is fine. We might implement these APIs 
later if needed.
   
   ```c
   // ---------------------------------------------------
   // Functions for handling read-write lock attributes.
   // ---------------------------------------------------
   
   // Initialize attribute object `attr' with default values.
   // extern int bthread_rwlockattr_init(bthread_rwlockattr_t* attr);
   
   // Destroy attribute object `attr'.
   // extern int bthread_rwlockattr_destroy(bthread_rwlockattr_t* attr);
   
   // Return current setting of reader/writer preference.
   // extern int bthread_rwlockattr_getkind_np(const bthread_rwlockattr_t* attr,
                                            int* pref);
   
   // Set reader/write preference.
   // extern int bthread_rwlockattr_setkind_np(bthread_rwlockattr_t* attr, int 
pref);
   ```


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to