/src/wrappers/glib/library/core/g_pooled_routine.e

http://github.com/tybor/Liberty · Specman e · 15 lines · 12 code · 1 blank · 2 comment · 0 complexity · 1c7c51a411bebda70eecbb0a2ed856b1 MD5 · raw file

  1. deferred class G_POOLED_ROUTINE
  2. obsolete "G_POOLED_ROUTINE is currently unusable because standard library is NOT thread safe. At all"
  3. -- Some work to be processed by a thread pool.
  4. feature
  5. invoke (a_pool: G_THREAD_POOL[G_POOLED_ROUTINE]) is
  6. -- The
  7. deferred
  8. end
  9. feature {G_THREAD_POOL} -- Implementation
  10. invoke_address: POINTER is
  11. do
  12. Result := $invoke
  13. end
  14. end -- class G_POOLED_ROUTINE