Support globalState example on Windows. (#1289)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package = platform.posix
|
||||
headers = assert.h complex.h dirent.h errno.h fcntl.h \
|
||||
fenv.h float.h ftw.h getopt.h inttypes.h libgen.h limits.h \
|
||||
locale.h math.h memory.h sched.h search.h semaphore.h \
|
||||
locale.h math.h memory.h pthread.h sched.h search.h semaphore.h \
|
||||
setjmp.h signal.h stdint.h stdio.h stdlib.h string.h \
|
||||
time.h uchar.h unistd.h utime.h wchar.h wctype.h
|
||||
noStringConversion = send sendto recv
|
||||
|
||||
@@ -31,7 +31,7 @@ data class SharedData(val string: String, val int: Int, val member: SharedDataMe
|
||||
|
||||
fun dumpShared(prefix: String): Unit {
|
||||
println("""
|
||||
$prefix: ${pthread_self().rawValue} x=${sharedData.x} f=${sharedData.f} s=${sharedData.string!!.toKString()}
|
||||
$prefix: ${pthread_self()} x=${sharedData.x} f=${sharedData.f} s=${sharedData.string!!.toKString()}
|
||||
""".trimIndent())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user