<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"><style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: ????; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span><br></div>
<div>hi everyone</div><div><br></div><div>i want to use mongoose </div><div><br></div><div>i find the follows in the internet</div><div><br></div><div>----------------------------------------------------------------------------------------------------------</div><div><p style="orphans: 2; widows: 2;"><font face="Verdana, Arial, \Bitstream Vera Sans\, Helvetica, sans-serif" size="2">Mongoose uses the POSIX API and its mutex and condition variable features and thus resources must be allocated for it in the application's configuration.</font></p><p style="orphans: 2; widows: 2;"><font face="Verdana, Arial, \Bitstream Vera Sans\, Helvetica, sans-serif" size="2">It uses:</font></p><ul style="orphans: 2; widows: 2;"><li><font face="Verdana, Arial, \Bitstream Vera Sans\, Helvetica, sans-serif" size="2">One POSIX "master" thread</font></li><li><font face="Verdana, Arial, \Bitstream Vera Sans\, Helvetica, sans-serif" size="2">A number of POSIX worker threads, depending on the number requested when starting Mongoose</font></li><li><font face="Verdana, Arial, \Bitstream Vera Sans\, Helvetica, sans-serif" size="2">Two libio file descriptors for each worker thread</font></li><li><font face="Verdana, Arial, \Bitstream Vera Sans\, Helvetica, sans-serif" size="2">Three POSIX condition variables</font></li><li><font face="Verdana, Arial, \Bitstream Vera Sans\, Helvetica, sans-serif" size="2">One POSIX mutex</font></li></ul><div style="orphans: 2; widows: 2;"><span style="line-height: 19px;">and moogoose library must be pulled in for linking</span></div><div style="orphans: 2; widows: 2;"><pre class="wiki" style="background-color: rgb(247, 247, 247); border: 1px solid rgb(215, 215, 215); box-shadow: rgb(238, 238, 238) 0px 0px 1em; border-top-left-radius: 0.3em; border-top-right-radius: 0.3em; border-bottom-right-radius: 0.3em; border-bottom-left-radius: 0.3em; margin-right: 1.75em; margin-left: 1.75em; padding: 0.25em; overflow: auto; font-size: 13px; background-position: initial initial; background-repeat: initial initial;">LD_LIBS+=-lmghttpd</pre></div><div style="orphans: 2; widows: 2;"><span style="line-height: 19px;">-----------------------------------------------------------------------------------------------</span></div></div><div style="orphans: 2; widows: 2;"><span style="line-height: 19px;"><br></span></div><div style="orphans: 2; widows: 2;"><span style="line-height: 19px;">problem1:</span></div><div style="orphans: 2; widows: 2;"><span style="line-height: 19px;"><br></span></div><div style="orphans: 2; widows: 2;"><span style="line-height: 19px;">i do not understand what the how to config the "master" thread? </span></div><div style="orphans: 2; widows: 2;"><span style="line-height: 19px;"><br></span></div><div style="orphans: 2; widows: 2;"><span style="line-height: 19px;">i just config </span><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">#define CONFIGURE_MAXIMUM_POSIX_THREADS 8  ,</span></div><div style="orphans: 2; widows: 2;"><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;"><br></span></div><div style="orphans: 2; widows: 2;"><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">is this include the "master" thread?</span></div><div style="orphans: 2; widows: 2;"><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;"><br></span></div><div style="orphans: 2; widows: 2;"><span style="line-height: 19px;">problem2:</span></div><div style="orphans: 2; widows: 2;"><span style="line-height: 19px;"><br></span></div><div style="orphans: 2; widows: 2;"><span style="line-height: 19px;">should i add the </span><span style="background-color: rgb(247, 247, 247); font-size: 13px; line-height: 1.5;">mghttpd lib into my project link config? but i do not find the lib</span><span style="background-color: rgb(247, 247, 247); font-size: 13px; line-height: 1.5;">mghttpd.a in the rtems intall directory ? i think moogoose is just a part of libbsd ,so ,is libbsd.a include this function ? </span></div><div style="orphans: 2; widows: 2;"><br></div><div style="orphans: 2; widows: 2;"><br></div><div style="orphans: 2; widows: 2;"><span style="background-color: rgb(247, 247, 247); font-size: 13px; line-height: 1.5;"><br></span></div><div style="orphans: 2; widows: 2;"><span style="background-color: rgb(247, 247, 247); font-size: 13px; line-height: 1.5;"> </span></div><hr style="WIDTH: 210px; HEIGHT: 1px" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>bin.wang@qkmtech.com</div></div></span></div>
</body></html>