Get the App
SLTechnology News&Howtos  ›  Servers  › 

Example Analysis of Thread of Ceph Network layer Code

Shulou Source: shulou.com Published: 2022-05-31 18:42:04 10月03日 Update

Editor to share with you the Ceph network layer code thread example analysis, I believe that most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to know it!

Where does the Pipe write thread start?

Pipe * SimpleMessenger::connect_rank ()-> pipe- > start_writer (); / / start the WriterThread

Where does the Pipe reader thread start?

Void SimpleMessenger::ready ()-> accepter.start (); Pipe * SimpleMessenger::add_accept_pipe (int sd) {p-> start_reader (); p-> pipe_lock.Unlock (); pipes.insert (p); accepting_pipes.insert (p); lock.Unlock (); return p;} void Pipe::start_reader () {assert (pipe_lock.is_locked ()); assert (! reader_running); if (reader_needs_join) {reader_thread.join () Reader_needs_join = false;} reader_running = true; reader_thread.create (msgr- > cct- > _ conf- > ms_rwthread_stack_bytes);} void Pipe::reader () / / start the reader thread.

Where does the DispatcherQueue thread start?

Void SimpleMessenger::ready () {ldout (cct,10)

Tags: Threads articles code examples web analysis content not much most more knowledge industry information information channels channels references learning help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL OPPO Reno Apple macOS Shulou Tech Info