MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / producer

Function producer

examples/libc/ex2.c:85–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83struct prodcons buffer;
84
85static void * producer(void * data)
86{
87 int n;
88 for (n = 0; n < 10000; n++) {
89 printf("%d --->\n", n);
90 put(&buffer, n);
91 }
92 put(&buffer, OVER);
93 return NULL;
94}
95
96static void * consumer(void * data)
97{

Callers

nothing calls this directly

Calls 2

putFunction · 0.70
printfFunction · 0.50

Tested by

no test coverage detected