Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

server_set_event_loop() not being run in Windows #349

@mike-a-smith

Description

@mike-a-smith

I have a tango server where the event loop runs just fine when compiled for Linux, but does not run at all in Windows.

When debugging the issue, it looks like the code in Util::server_run() surrounding the orb->run() call is very different depending on if TG_WINDOWS is defined:

#ifdef _TG_WINDOWS_
   <snip>
   try
   {
      orb-run();
      server_cleanup();
   <snip>
#else 
   <snip>
   try
   {
      if (ev_loop_func != NULL)
      {
         <while loop that runs event loop and calls orb->perform_work()>
      }
      else
      {
         orb->run();
      }
      server_cleanup();
   <snip>
#endif

Is there a reason for not using the event loop functionality in windows? Would a cut/paste of the if(ev_loop_func) block fix this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions