In BF518 ,I need to disable one thread (discard server and discard worker thread)in inetd server example.
I am not that much familiar to thread programming.
I expect some guidance
We don't provide an INETD example for the BF518F EZ-KIT Lite, so I'm assuming you are using an example for one of the other EZ-KIT Lites as your basis? Either way, here's what you will need to do:
First, under the 'Kernel' tab in the Project Panel, expand "Threads" then expand "Thread Types". You will see all of the thread types defined in here. For any threads you do not want, right-click and choose 'delete' - you will be given the option to remove the source/header files from the project also.
Then, at line 170 in lwip_sysboot_threadtype.c you will see the following code to call VDK_CreateThreadEx() which creates the Discard Server thread (the Discard Server creates the Discard Worker instances, but the Discard Server code has already been removed, you just need to remove any references now):
TCB.template_id = kDiscard_Server_ThreadType;
if (VDK_CreateThreadEx(&TCB) == UINT_MAX)
fprintf(stderr, "boot: failed to create Discard server thread\n");
That should do it.
Are you using VisualDSP++ or CrossCore Embedded Studio? lwIP in VisualDSP++ uses VDK as the OS, while lwIP in CCES uses uC/OS-III, so the method to add/remove thread code differs.
Thanks Craig for immediate response.
I use VDSP++.
Thanks Craig .It worked for me 100%.
One of my other query is not yet answered.Can you please help on that?
Posted on Oct 18, 2013 8:12 AM
Retrieving data ...