Lines Matching refs:a
3 …tion between functions. For example, some functions may change the value of a global variable due …
7 …a typical inter-thread communication method in real-time operating systems.For example, there are …
13 …a fixed 4 bytes(for a 32-bit processing system, the pointer is 4 bytes in size, so an email can ho…
17 … timer to send a message to the thread. In general, the receiving of the mails can be a blocked p…
19 …a thread sends a message to a mailbox, if the mailbox is not full, the message will be copied to t…
21 …a thread receives a message from a mailbox, if the mailbox is empty, the thread receiving the mess…
25 …a data structure used by the operating system to manage mailboxes, represented by the structure `s…
47 …a structure that contains important parameters related to mailbox and it plays an important role i…
53 To dynamically create a mailbox object, call the following function interface:
59 When a mailbox object is created, a mailbox object is first allocated from the object manager, and …
72 …a mailbox created with rt_mb_create() is no longer used, it should be deleted to release the corre…
78 When deleting a mailbox, if a thread is suspended on the mailbox object, the kernel first wakes up …
90 …a mailbox is similar to creating a mailbox, except that the mailbox initialized is for static mail…
140 …r value or a pointer pointing to the buffer. When the mailbox is fully filled with mails, the thre…
178 Only when there is a mail in the mailbox, the recipient can receive the mail immediately and return…
184 …a mail, the recipient needs to specify the mailbox handle, and specify the location to store the r…
200 This is a mailbox application routine that initializes 2 static threads, 1 static mailbox object, o…
215 static char mb_str1[] = "I'm a mail!";
230 rt_kprintf("thread1: try to recv a mail\n");
235 rt_kprintf("thread1: get a mail from mailbox, the content:%s\n", str);
283 /* Initialize a mailbox */
287 …izeof(mb_pool) / 4, /* The number of messages in the mailbox because a message occupies 4 b…
327 thread1: try to recv a mail
328 thread1: get a mail from mailbox, the content:I'm a mail!
329 msh >thread1: try to recv a mail
330 thread1: get a mail from mailbox, the content:this is another mail!
332 thread1: try to recv a mail
333 thread1: get a mail from mailbox, the content:this is another mail!
334 thread1: try to recv a mail
335 thread1: get a mail from mailbox, the content:over
338 … use the mailbox. Thread 2 sends the mails, for a total of 11 times; thread 1 receives the mails,…
342 …a simple inter-thread messaging method, which is characterized by low overhead and high efficiency…
352 …or such a message structure, it contains a pointer pointing to data `data_ptr` and a variable `dat…
364 When receiving the thread, because the pointer is what's being received, and msg_ptr is a newly all…
377 … communication method, which is an extension of the mailbox. Can be used in a variety of occasions…
381 …sage queue is empty, the thread reading the messages can be suspended. When a new message arrives,…
383 As shown in the following figure, a thread or interrupt service routine can put one or more message…
387 …a message queue is created, it is assigned a message queue control block: name, memory buffer, mes…
391 …a message queue control block is a data structure used by the operating system to manage message q…
416 …a structure that contains important parameters related to the message queue and plays an important…
429 When creating a message queue, first allocate a message queue object from the object manager, then …
436 | msg_size | The maximum length of a message in the message queue, in bytes |
450 When deleting a message queue, if a thread is suspended on the message queue's waiting queue, the k…
462 …a static message queue object is similar to creating a message queue object, except that the memor…
470 …he handle to the message queue object that the user has requested (that is, a pointer pointing to …
479 | msg_size | The maximum length of a message in the message queue, in bytes |
503 …a message to the message queue. When sending a message, the message queue object first takes an id…
509 …a message, the sender specifies the object handle of the sent message queue (that is, a pointer po…
525 The process of sending an emergency message is almost the same as sending a message. The only diffe…
547 Only when there is a message in the message queue, can the receiver receive message, otherwise the …
554 …a message, the receiver needs to specify the message queue object handle that stores the message a…
571 This is a message queue application routine. Two static threads are initialized in the routine, one…
643 /* Send a message to the message queue */
751 …a function interface for sending emergency messages. But when you create a message queue with a ma…
761 Similar to the mailbox example is the message structure definition. Now, let's assume that such a m…
776 Note that in the above code, the data content of a local variable is sent to the message queue. In …
791 Because message queue is a direct copy of data content, so in the above example, local structure is…
815 …a mailbox as a confirmation flag, while the second type of message uses a semaphore as a confirmat…
819 … as a soft interrupt signal), from a software perspective, is a simulation of interrupt mechanism.…
823 …ication in RT-Thread. The POSIX standard defines that sigset_t type defines a signal set. However,…
825 …bnormality and handle emergency between threads. No operation is needed for a thread to wait for t…
829 …ssing program. For signals that need to be processed, the thread can specify a function to process.
831 The second one is to ignore a signal and do nothing about it, as if it had not happened.
835 …installs a signal and unmasks it. At the same time, it sets the approach of how to process abnorma…
839 …ready to process the corresponding signal. If it is running, it will create a new stack frame spac…
849 …a signal, then the signal needs to be installed in the thread. Signal installation is primarily us…
871 2) The parameter is set to SIG_IGN. Ignore a signal, and do nothing on the signal, as if it had not…
893 …e "attention" to some of the signals, then sending these signals will cause a soft interrupt for t…
909 … process abnormality, a signal can be sent to the thread that has been set to process abnormality.…
952 …a signal application routine, as shown in the following code. This routine creates one thread. Whe…
1036 In the routine, the thread first installs the signal and unblocks it, then sends a signal to the th…